mirror of https://github.com/QMCPACK/qmcpack.git
21 lines
756 B
C++
21 lines
756 B
C++
// Copyright 2018-2023 Alfredo A. Correa
|
|
#include <mpi3/environment.hpp>
|
|
|
|
namespace mpi3 = boost::mpi3;
|
|
|
|
mpi3::environment const mpienv{mpi3::thread::serialized}; // NOLINT(fuchsia-statically-constructed-objects,cert-err58-cpp)
|
|
|
|
int main() try {
|
|
|
|
#if not defined(EXAMPI)
|
|
assert( mpienv.thread_support() == mpi3::thread::single or mpienv.thread_support() == mpi3::thread::funneled or mpienv.thread_support() == mpi3::thread::serialized );
|
|
assert( mpienv.thread_support() <= mpi3::thread::serialized );
|
|
assert( mpienv.thread_support() < mpi3::thread::multiple );
|
|
#endif
|
|
|
|
assert( mpienv.is_thread_main() );
|
|
|
|
auto const cuda = mpienv.cuda_support(); // NOLINT(readability-static-accessed-through-instance)
|
|
assert( not cuda );
|
|
} catch(...) {return 0;}
|