1 #ifndef AMREX_OPENMP_H_
2 #define AMREX_OPENMP_H_
3 #include <AMReX_Config.H>
21 void** get_lock_impl (
int ilock);
23 inline omp_lock_t* get_lock (
int ilock) {
24 return (omp_lock_t*)(*(get_lock_impl(ilock)));
27 omp_lock_t* get_lock (
int ilock);
Definition: AMReX_OpenMP.H:33
constexpr int get_thread_num()
Definition: AMReX_OpenMP.H:37
constexpr void set_num_threads(int)
Definition: AMReX_OpenMP.H:39
constexpr int get_num_threads()
Definition: AMReX_OpenMP.H:35
constexpr int in_parallel()
Definition: AMReX_OpenMP.H:38
constexpr int get_max_threads()
Definition: AMReX_OpenMP.H:36
integer function omp_get_num_threads()
Definition: AMReX_omp_mod.F90:29
integer function omp_get_thread_num()
Definition: AMReX_omp_mod.F90:37
integer function omp_get_max_threads()
Definition: AMReX_omp_mod.F90:33
logical function omp_in_parallel()
Definition: AMReX_omp_mod.F90:41
Definition: AMReX_Amr.cpp:49
AMReX * Initialize(MPI_Comm mpi_comm, std::ostream &a_osout=std::cout, std::ostream &a_oserr=std::cerr, ErrorHandler a_errhandler=nullptr)
Definition: AMReX.cpp:326
void Finalize(AMReX *pamrex)
Definition: AMReX.cpp:739
int numUniquePhysicalCores()
Definition: AMReX_OpenMP.cpp:29