NVlabs/instant-ngp

error: identifier "cublasSetWorkspace" is undefined

linghai06 opened this issue · 3 comments

Hi, really nice and inspiring work! But I was stuck in the compiling process on a V100 machine, with an error of identifier "cublasSetWorkspace" is undefined. Please see the following details.

[ 50%] Built target glfw_objects
/home/projects/instant-ngp/dependencies/tiny-cuda-nn/include/tiny-cuda-nn/optimizers/shampoo.h(756): error: identifier "cublasSetWorkspace" is undefined
          detected during:
            instantiation of "tcnn::ShampooOptimizer<T>::ShampooOptimizer(const tcnn::json &) [with T=float]"
/home/projects/instant-ngp/dependencies/tiny-cuda-nn/src/optimizer.cu(72): here
            instantiation of "tcnn::Optimizer<T> *tcnn::create_optimizer<T>(const tcnn::json &) [with T=float]"
/home/projects/instant-ngp/dependencies/tiny-cuda-nn/include/tiny-cuda-nn/optimizers/average.h(66): here

/home/projects/instant-ngp/dependencies/tiny-cuda-nn/include/tiny-cuda-nn/optimizers/shampoo.h(774): error: identifier "cublasSetWorkspace" is undefined
          detected during:
            instantiation of "tcnn::ShampooOptimizer<T>::ShampooOptimizer(const tcnn::json &) [with T=float]"
/home/projects/instant-ngp/dependencies/tiny-cuda-nn/src/optimizer.cu(72): here
            instantiation of "tcnn::Optimizer<T> *tcnn::create_optimizer<T>(const tcnn::json &) [with T=float]"
/home/projects/instant-ngp/dependencies/tiny-cuda-nn/include/tiny-cuda-nn/optimizers/average.h(66): here

/home/projects/instant-ngp/dependencies/tiny-cuda-nn/include/tiny-cuda-nn/optimizers/shampoo.h(797): error: identifier "cublasSetWorkspace" is undefined
          detected during:
            instantiation of "tcnn::ShampooOptimizer<T>::ShampooOptimizer(const tcnn::json &) [with T=float]"
/home/projects/instant-ngp/dependencies/tiny-cuda-nn/src/optimizer.cu(72): here
            instantiation of "tcnn::Optimizer<T> *tcnn::create_optimizer<T>(const tcnn::json &) [with T=float]"
/home/projects/instant-ngp/dependencies/tiny-cuda-nn/include/tiny-cuda-nn/optimizers/average.h(66): here

3 errors detected in the compilation of "/home/projects/instant-ngp/dependencies/tiny-cuda-nn/src/optimizer.cu".
make[2]: *** [dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/build.make:188: dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/optimizer.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 50%] Built target optix_program
make[1]: *** [CMakeFiles/Makefile2:335: dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/all] Error 2

Any suggestion?

Hi, really nice and inspiring work! But I was stuck in the compiling process on a V100 machine, with an error of identifier "cublasSetWorkspace" is undefined. Please see the following details.

[ 50%] Built target glfw_objects
/home/projects/instant-ngp/dependencies/tiny-cuda-nn/include/tiny-cuda-nn/optimizers/shampoo.h(756): error: identifier "cublasSetWorkspace" is undefined
          detected during:
            instantiation of "tcnn::ShampooOptimizer<T>::ShampooOptimizer(const tcnn::json &) [with T=float]"
/home/projects/instant-ngp/dependencies/tiny-cuda-nn/src/optimizer.cu(72): here
            instantiation of "tcnn::Optimizer<T> *tcnn::create_optimizer<T>(const tcnn::json &) [with T=float]"
/home/projects/instant-ngp/dependencies/tiny-cuda-nn/include/tiny-cuda-nn/optimizers/average.h(66): here

/home/projects/instant-ngp/dependencies/tiny-cuda-nn/include/tiny-cuda-nn/optimizers/shampoo.h(774): error: identifier "cublasSetWorkspace" is undefined
          detected during:
            instantiation of "tcnn::ShampooOptimizer<T>::ShampooOptimizer(const tcnn::json &) [with T=float]"
/home/projects/instant-ngp/dependencies/tiny-cuda-nn/src/optimizer.cu(72): here
            instantiation of "tcnn::Optimizer<T> *tcnn::create_optimizer<T>(const tcnn::json &) [with T=float]"
/home/projects/instant-ngp/dependencies/tiny-cuda-nn/include/tiny-cuda-nn/optimizers/average.h(66): here

/home/projects/instant-ngp/dependencies/tiny-cuda-nn/include/tiny-cuda-nn/optimizers/shampoo.h(797): error: identifier "cublasSetWorkspace" is undefined
          detected during:
            instantiation of "tcnn::ShampooOptimizer<T>::ShampooOptimizer(const tcnn::json &) [with T=float]"
/home/projects/instant-ngp/dependencies/tiny-cuda-nn/src/optimizer.cu(72): here
            instantiation of "tcnn::Optimizer<T> *tcnn::create_optimizer<T>(const tcnn::json &) [with T=float]"
/home/projects/instant-ngp/dependencies/tiny-cuda-nn/include/tiny-cuda-nn/optimizers/average.h(66): here

3 errors detected in the compilation of "/home/projects/instant-ngp/dependencies/tiny-cuda-nn/src/optimizer.cu".
make[2]: *** [dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/build.make:188: dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/optimizer.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 50%] Built target optix_program
make[1]: *** [CMakeFiles/Makefile2:335: dependencies/tiny-cuda-nn/src/CMakeFiles/tiny-cuda-nn.dir/all] Error 2

Any suggestion?

I updated cuda11.0 to cuda11.4 and the problem disappeared. Quite strange.

你好,这个解决了吗

How to solve this problem?