| 1 | #include "config.h" |
| 2 | #include "cudify_hardware_common.hpp" |
| 3 | #ifdef HAVE_BOOST_CONTEXT |
| 4 | #include <boost/context/continuation.hpp> |
| 5 | #endif |
| 6 | #include <vector> |
| 7 | #include "cudify_hardware_common.hpp" |
| 8 | |
| 9 | #ifdef HAVE_ALPAKA |
| 10 | #include "cudify_hardware_alpaka.hpp" |
| 11 | |
| 12 | alpa_base_structs __alpa_base__; |
| 13 | #endif |
| 14 | |
| 15 | #ifdef CUDA_ON_CPU |
| 16 | |
| 17 | dim3 threadIdx; |
| 18 | dim3 blockIdx; |
| 19 | |
| 20 | dim3 blockDim; |
| 21 | dim3 gridDim; |
| 22 | |
| 23 | #endif |
| 24 | |
| 25 | int vct_atomic_add; |
| 26 | int vct_atomic_rem; |
| 27 | |
| 28 | #ifdef HAVE_BOOST_CONTEXT |
| 29 | std::vector<void *> mem_stack; |
| 30 | std::vector<boost::context::detail::fcontext_t> contexts; |
| 31 | int cur_fib; |
| 32 | void * par_glob; |
| 33 | boost::context::detail::fcontext_t main_ctx; |
| 34 | #endif |