src
HeterogeneousCore
CUDAUtilities
interface
cuda_assert.h
Go to the documentation of this file.
1
// The omission of #include guards is on purpose: it does make sense to #include
2
// this file multiple times, setting a different value of GPU_DEBUG beforehand.
3
4
#ifdef __CUDA_ARCH__
5
#ifndef GPU_DEBUG
6
// disable asserts
7
#ifndef NDEBUG
8
#define NDEBUG
9
#endif
10
#else
11
// enable asserts
12
#ifdef NDEBUG
13
#undef NDEBUG
14
#endif
15
#endif
16
#endif // __CUDA_ARCH__
17
18
#include <cassert>
Generated for CMSSW Reference Manual by
1.8.14