11 CUDAContextScope::CUDAContextScope(CUDADevice *device) : device(device)
13 cuda_device_assert(device, cuCtxPushCurrent(device->cuContext));
16 CUDAContextScope::~CUDAContextScope()
18 cuda_device_assert(device, cuCtxPopCurrent(
NULL));
21 # ifndef WITH_CUDA_DYNLOAD
22 const char *cuewErrorString(CUresult
result)
35 const char *cuewCompilerPath()
37 return CYCLES_CUDA_NVCC_EXECUTABLE;
40 int cuewCompilerVersion()
42 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,...)