1 #include "util/cuda_util.hpp"
2 #ifdef HAVE_BOOST_CONTEXT
3 #include <boost/context/continuation.hpp>
9 #include "alpala/cudify_hardware_alpaka.hpp"
14 #if defined(CUDIFY_USE_SEQUENTIAL) || defined(CUDIFY_USE_OPENMP)
16 thread_local dim3 threadIdx;
17 thread_local dim3 blockIdx;
19 unsigned int * tid_x[OPENMP_MAX_NUM_THREADS];
20 unsigned int * tid_y[OPENMP_MAX_NUM_THREADS];
21 unsigned int * tid_z[OPENMP_MAX_NUM_THREADS];
28 bool init_wrappers_call =
false;
30 thread_local
int vct_atomic_add;
31 thread_local
int vct_atomic_rem;
35 #ifdef HAVE_BOOST_CONTEXT
36 std::vector<void *> mem_stack;
38 std::vector<boost::context::detail::fcontext_t> contexts;
39 thread_local
void * par_glob;
40 thread_local boost::context::detail::fcontext_t main_ctx;