9# ifdef WITH_CUDA_DYNLOAD
20class CUDAContextScope {
22 CUDAContextScope(CUDADevice *device);
30# define cuda_device_assert(cuda_device, stmt) \
32 CUresult result = stmt; \
33 if (result != CUDA_SUCCESS) { \
34 const char *name = cuewErrorString(result); \
35 cuda_device->set_error( \
36 string_printf("%s in %s (%s:%d)", name, #stmt, __FILE__, __LINE__)); \
41# define cuda_assert(stmt) cuda_device_assert(this, stmt)
43# ifndef WITH_CUDA_DYNLOAD
46const char *cuewErrorString(CUresult result);
47const char *cuewCompilerPath();
48int cuewCompilerVersion();
#define CCL_NAMESPACE_END