 |
Project
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
33#if !(defined(__CLING__) || defined(__ROOTCLING__) || defined(G__ROOT))
34 #if defined(__CUDACC__) || defined(__OPENCL__) || defined(__HIPCC__) || defined(__OPENCL_HOST__)
38 #if defined(GPUCA_GPUCODE)
39 #if defined(__CUDA_ARCH__) || defined(__OPENCL__) || defined(__HIP_DEVICE_COMPILE__)
40 #define GPUCA_GPUCODE_DEVICE
42 #if defined(__CUDACC__)
43 #define GPUCA_GPUTYPE CUDA
44 #elif defined(__HIPCC__)
45 #define GPUCA_GPUTYPE HIP
46 #elif defined(__OPENCL__) || defined(__OPENCL_HOST__)
47 #define GPUCA_GPUTYPE OCL
52 #define GPUCA_GPUTYPE CPU
55#if defined(GPUCA_STANDALONE) || (defined(GPUCA_O2_LIB) && !defined(GPUCA_O2_INTERFACE)) || defined (GPUCA_GPUCODE)
56 #define GPUCA_ALIGPUCODE
59#if (defined(__CUDACC__) && defined(GPUCA_CUDA_NO_CONSTANT_MEMORY)) || (defined(__HIPCC__) && defined(GPUCA_HIP_NO_CONSTANT_MEMORY)) || (defined(__OPENCL__) && defined(GPUCA_OPENCL_NO_CONSTANT_MEMORY))
60 #define GPUCA_NO_CONSTANT_MEMORY
61#elif (defined(__CUDACC__) || defined(__HIPCC__)) && !defined(GPUCA_GPUCODE_HOSTONLY)
62 #define GPUCA_HAS_GLOBAL_SYMBOL_CONSTANT_MEM
65#if !defined(GPUCA_GPUCODE) && !defined(GPUCA_STANDALONE) && defined(DEBUG_STREAMER)
66 #define GPUCA_DEBUG_STREAMER_CHECK(...) __VA_ARGS__
68 #define GPUCA_DEBUG_STREAMER_CHECK(...)
71#ifndef GPUCA_RTC_SPECIAL_CODE
72 #define GPUCA_RTC_SPECIAL_CODE(...)
75#ifndef GPUCA_DETERMINISTIC_CODE
76 #ifdef GPUCA_DETERMINISTIC_MODE
77 #define GPUCA_DETERMINISTIC_CODE(det, indet) det
79 #define GPUCA_DETERMINISTIC_CODE(det, indet) indet