12CUDAContextScope::CUDAContextScope(CUDADevice *device) : device(device)
14 cuda_device_assert(device, cuCtxPushCurrent(device->cuContext));
17CUDAContextScope::~CUDAContextScope()
19 cuda_device_assert(device, cuCtxPopCurrent(
NULL));
22# ifndef WITH_CUDA_DYNLOAD
23const char *cuewErrorString(CUresult result)
36const char *cuewCompilerPath()
38 return CYCLES_CUDA_NVCC_EXECUTABLE;
41int cuewCompilerVersion()
43 return (CUDA_VERSION / 100) + (CUDA_VERSION % 100 / 10);
#define CCL_NAMESPACE_END
static void error(const char *str)
CCL_NAMESPACE_BEGIN string string_printf(const char *format,...)