20 #ifndef RAJA_policy_openmp_thread_HPP
21 #define RAJA_policy_openmp_thread_HPP
23 #include "RAJA/config.hpp"
25 #if defined(RAJA_OPENMP_ACTIVE)
37 return omp_get_max_threads();
43 return omp_get_thread_num();
Header file for common RAJA internal macro definitions.
#define RAJA_HOST_DEVICE
Definition: macros.hpp:65
Definition: AlignedRangeIndexSetBuilders.cpp:35
RAJA_INLINE RAJA_HOST_DEVICE int get_max_threads()
Get maximum number of threads.
Definition: thread.hpp:77
RAJA_INLINE RAJA_HOST_DEVICE int get_thread_num()
Get current thread number This is based on the OpenMP threading model. Within a parallel team executi...
Definition: thread.hpp:90
RAJA header file defining automatic thread operations.