10 #ifndef CUDA_API_WRAPPERS_CONSTANTS_HPP_ 11 #define CUDA_API_WRAPPERS_CONSTANTS_HPP_ 29 enum { warp_size = 32 };
87 dont_record_timings =
false,
88 do_record_timings =
true,
115 do_take_ownership =
true,
116 do_not_take_ownership =
false,
120 do_hold_primary_context_refcount_unit =
true,
121 do_not_hold_primary_context_refcount_unit =
false,
128 constexpr
const CUcontext none { 0 };
136 #endif // CUDA_API_WRAPPERS_CONSTANTS_HPP_ Definitions and functionality wrapping CUDA APIs.
Definition: array.hpp:22
If the CUDA runtime has not been set to a specific device, this is the ID of the device it defaults t...
Definition: constants.hpp:53
Thread blocks are not allowed to synchronize (the default, and likely faster, execution mode) ...
Definition: constants.hpp:109
CUdevice id_t
Numeric ID of a CUDA device used by the CUDA Runtime API.
Definition: types.hpp:850
Thread groups may span multiple blocks, so that they can synchronize their actions.
Definition: constants.hpp:107
unsigned size_t
Each physical core ("Symmetric Multiprocessor") on an nVIDIA GPU has a space of shared memory (see th...
Definition: types.hpp:730
CUstream handle_t
The CUDA driver's raw handle for streams.
Definition: types.hpp:239
The thread calling event_.synchronize() will block - yield control of the CPU and will only become re...
Definition: constants.hpp:79
Can be shared between processes. Must not be able to record timings.
Definition: constants.hpp:96
The thread calling event_.synchronize() will enter a busy-wait loop; this (might) minimize delay betw...
Definition: constants.hpp:70
Can only be used by the process which created it.
Definition: constants.hpp:95
const stream::handle_t default_stream_handle
The CUDA runtime provides a default stream on which work is scheduled when no stream is specified; fo...
Definition: constants.hpp:42
Fundamental CUDA-related type definitions.