Loading...
Searching...
No Matches
Go to the documentation of this file.
3#if __has_include(<omp.h>)
5__host__ __device__
static inline int get_max_threads() {
9 return omp_get_max_threads();
12__host__ __device__
static inline int get_thread_num() {
16 return omp_get_thread_num();
20constexpr static inline int get_max_threads() {
return 1; }
21constexpr static inline int get_thread_num() {
return 0; }