53#if defined(NEKTAR_USE_MPI)
57#if defined(NEKTAR_USE_MAGMA)
105 int argc = boost::unit_test::framework::master_test_suite().argc;
106 char **argv = boost::unit_test::framework::master_test_suite().argv;
114 std::string execname(argv[0]);
126#if defined(NEKTAR_USE_MAGMA)
129#if defined(NEKTAR_USE_MPI)
130 MPI_Init(&argc, &argv);
137#if defined(NEKTAR_USE_MPI)
146#if defined(NEKTAR_USE_MPI)
149#if defined(NEKTAR_USE_MAGMA)
159#if defined(NEKTAR_USE_MPI)
160 MPI_Comm comm = MPI_COMM_WORLD;
161 MPI_Comm_rank(comm, &
rank);
168 std::cerr <<
"Usage: " << execname <<
" -- ExecName";
172 std::cerr <<
" ImplName";
175 std::cerr << std::endl;
177#if defined(NEKTAR_ENABLE_DEVICE) && defined(NEKTAR_ENABLE_SIMD)
178 std::cerr <<
"\t ExecName = Serial, AVX, Device" << std::endl;
179#elif defined(NEKTAR_ENABLE_DEVICE)
180 std::cerr <<
"\t ExecName = Serial, Device" << std::endl;
181#elif defined(NEKTAR_ENABLE_SIMD)
182 std::cerr <<
"\t ExecName = Serial, AVX" << std::endl;
184 std::cerr <<
"\t ExecName = Serial" << std::endl;
189#if defined(NEKTAR_ENABLE_DEVICE)
190 std::cerr <<
"\t ImplName = StdMat, SumFac, SumFacTOP" << std::endl;
192 std::cerr <<
"\t ImplName = StdMat, SumFac" << std::endl;
208#if defined(BOOST_TEST_NO_MAIN)
210#define NEKTAR_TEST_GLOBAL_CONFIGURATION(args) \
211 using GlobalConfiguration = Nektar::UnitTests::GlobalConfiguration<args>; \
213 inline bool init_function() \
218 int main(int argc, char *argv[]) \
220 GlobalConfiguration gc; \
222 return boost::unit_test::unit_test_main(&init_function, argc, argv); \
227#define NEKTAR_TEST_GLOBAL_CONFIGURATION(args) \
228 using GlobalConfiguration = Nektar::UnitTests::GlobalConfiguration<args>; \
229 BOOST_TEST_GLOBAL_CONFIGURATION(GlobalConfiguration)
TestArgs
The arguments a fixture's tests require, passed to the binary after "--".
@ ExecAndImpl
exe – ExecName ImplName
static std::string & ImplStr()
The implementation name the binary was invoked with.
static constexpr int RequiredArgc
The number of arguments, the executable name included, that are needed.
static void PrintUsage(const std::string &execname)
Writes the accepted arguments to stderr, on the root rank only.
static std::string & ExecStr()
The execution space name the binary was invoked with.