mitsuba-renderer/drjit-core

Compile error without DRJIT_DYNAMIC_CUDA

ib00 opened this issue · 0 comments

ib00 commented

I am getting the following error when DRJIT_DYNAMIC_CUDA is not defined:

cuda_api.cpp:132:10: error: cannot initialize a variable of type 'CUresult' (aka 'cudaError_enum') with an rvalue of type 'bool'
CUresult jitc_cuda_cuinit_result = false;
         ^                         ~~~~~
cuda_api.cpp:259:55: error: use of undeclared identifier 'jitc_cuda_handle'
    cuMemAllocAsync = decltype(cuMemAllocAsync)(dlsym(jitc_cuda_handle, "cuMemAllocAsync_ptsz"));
                                                      ^
cuda_api.cpp:260:53: error: use of undeclared identifier 'jitc_cuda_handle'
    cuMemFreeAsync = decltype(cuMemFreeAsync)(dlsym(jitc_cuda_handle, "cuMemFreeAsync_ptsz"));