File tree 2 files changed +7
-8
lines changed
python/src/TiledArray/python
2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,15 @@ if (NOT TARGET MADworld)
41
41
42
42
# look for C and MPI here to make troubleshooting easier and be able to override defaults for MADNESS
43
43
enable_language (C)
44
- find_package (MPI REQUIRED COMPONENTS C CXX )
44
+ find_package (MPI REQUIRED COMPONENTS C)
45
45
46
+ set (FETCHCONTENT_QUIET FALSE )
46
47
include (FetchContent)
47
48
FetchContent_Declare(
48
49
MADNESS
49
- GIT_REPOSITORY https://github.com/m-a-d-n-e-s-s/madness.git
50
+ GIT_REPOSITORY https://github.com/m-a-d-n-e-s-s/madness.git
50
51
GIT_TAG ${TA_TRACKED_MADNESS_TAG}
52
+ GIT_PROGRESS TRUE
51
53
)
52
54
FetchContent_MakeAvailable(MADNESS)
53
55
FetchContent_GetProperties(MADNESS
Original file line number Diff line number Diff line change @@ -40,11 +40,8 @@ static World &initialize() {
40
40
// this loads MPI before TA tries to do it
41
41
int initialized = 0 ;
42
42
MPI_Initialized (&initialized);
43
- MPI_Comm ta_comm;
44
43
45
- if (!initialized) {
46
- ta_comm = MPI_COMM_WORLD;
47
- } else {
44
+ if (initialized) {
48
45
int thread_level;
49
46
MPI_Query_thread (&thread_level);
50
47
if (thread_level != MPI_THREAD_MULTIPLE)
@@ -58,10 +55,10 @@ static World &initialize() {
58
55
char *_argv[0 ];
59
56
char **argv = _argv;
60
57
if (!madness::initialized ()) {
61
- madness::initialize (argc, argv, ta_comm );
58
+ madness::initialize (argc, argv);
62
59
initialized_madness = true ;
63
60
}
64
- TiledArray::World &world = TiledArray::initialize (argc, argv, ta_comm );
61
+ TiledArray::World &world = TiledArray::initialize (argc, argv, MPI_COMM_WORLD );
65
62
TiledArray::set_default_world (world);
66
63
if (world.rank () == 0 ) {
67
64
std::cout << " initialized TA in a world with " << world.size () << " ranks"
You can’t perform that action at this time.
0 commit comments