31 MPI_Comm_size(comm, &num_ranks);
32 MPI_Comm_rank(comm, &irank);
35 if (irank != 0)
return;
37 amrex::ignore_unused(comm);
41 REMORA3d.*.ex <input_file> [param=value] [param=value] ...
60 if (irank != 0)
return;
62 amrex::ignore_unused(comm);
65 std::cout <<
"ERROR: " << msg << std::endl;
73 MPI_Comm_size(comm, &num_ranks);
74 MPI_Comm_rank(comm, &irank);
77 if (irank != 0)
return;
79 amrex::ignore_unused(comm);
82 auto etime = std::chrono::system_clock::now();
83 auto etimet = std::chrono::system_clock::to_time_t(etime);
86 ctime_r(&etimet, time_buf);
87 const std::string tstamp(time_buf);
89 char* time_buf =
new char[64];
90 ctime_s(time_buf, 64, &etimet);
91 const std::string tstamp(time_buf);
99 <<
" REMORA (https://github.com/seahorce-scidac/REMORA)"
100 << std::endl << std::endl
101 <<
" REMORA Git SHA :: " << githash1 << std::endl
102 <<
" AMReX Git SHA :: " << githash2 << std::endl
103 <<
" AMReX version :: " << amrex::Version() << std::endl << std::endl
104 <<
" Exec. time :: " << tstamp
110 <<
"ON (Num. ranks = " << num_ranks <<
")" << std::endl
112 <<
"OFF " << std::endl
117#if defined(AMREX_USE_CUDA)
119#elif defined(AMREX_USE_HIP)
121#elif defined(AMREX_USE_SYCL)
126 <<
"OFF" << std::endl
130 <<
"ON (Num. threads = " << omp_get_max_threads() <<
")" << std::endl
132 <<
"OFF" << std::endl