thundersvm icon indicating copy to clipboard operation
thundersvm copied to clipboard

Error in "make" (Ubuntu GPU)

Open Song-Yuqi opened this issue 2 years ago • 4 comments

Hello, I met a problem when building thundersvm on my Ubuntu 20.04 workstation (gcc version: 7.5.0). I set up a virture environment using anaconda in which I install CUDA 10.2. I run the following commands: git clone https://github.com/Xtra-Computing/thundersvm.git mkdir build cd build cmake .. make -j But got following errors in the last step (either "make -j" or "make" doesn't work): [ 3%] Building NVCC (Device) object src/thundersvm/CMakeFiles/thundersvm.dir/kernel/thundersvm_generated_kernelmatrix_kernel.cu.o /home/dell/MLTools/thundersvm/src/thundersvm/kernel/kernelmatrix_kernel.cu:10:10: fatal error: cub/cub.cuh: No such file or directory #include <cub/cub.cuh> ^~~~~~~~~~~~~ compilation terminated. CMake Error at thundersvm_generated_kernelmatrix_kernel.cu.o.Release.cmake:220 (message): Error generating /home/dell/MLTools/thundersvm/build/src/thundersvm/CMakeFiles/thundersvm.dir/kernel/./thundersvm_generated_kernelmatrix_kernel.cu.o

make[2]: *** [src/thundersvm/CMakeFiles/thundersvm.dir/build.make:65: src/thundersvm/CMakeFiles/thundersvm.dir/kernel/thundersvm_generated_kernelmatrix_kernel.cu.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:151: src/thundersvm/CMakeFiles/thundersvm.dir/all] Error 2 make: *** [Makefile:130: all] Error 2

How can I fix the "make" error? Thanks so much!

Song-Yuqi avatar May 16 '23 14:05 Song-Yuqi

Same for me. I think the issue is this commit e8e66ae460dc16d929577e7c9e235877c3dc892e merged 3 days ago directly to main. Could you please revert it?

The build fails when I try to build the package w/out GPU though, but I guess the root-cause is the same

lchizhova avatar May 16 '23 14:05 lchizhova

Same for me. I think the issue is this commit e8e66ae460dc16d929577e7c9e235877c3dc892e merged 3 days ago directly to main. Could you please revert it?

The build fails when I try to build the package w/out GPU though, but I guess the root-cause is the same

But it still doesn't work when I roll back to the previous version.

BJTUpupil avatar Dec 25 '23 06:12 BJTUpupil

Same for me. I think the issue is this commit e8e66ae460dc16d929577e7c9e235877c3dc892e merged 3 days ago directly to main. Could you please revert it? The build fails when I try to build the package w/out GPU though, but I guess the root-cause is the same

But it still doesn't work when I roll back to the previous version.

Hello, I have encountered this issue as well. I wonder if you have resolved it now?

ZeyuanLin0215 avatar Jan 30 '24 12:01 ZeyuanLin0215

Same for me. I think the issue is this commit e8e66ae460dc16d929577e7c9e235877c3dc892e merged 3 days ago directly to main. Could you please revert it? The build fails when I try to build the package w/out GPU though, but I guess the root-cause is the same

But it still doesn't work when I roll back to the previous version.

Hello, I have encountered this issue as well. I wonder if you have resolved it now?

I have resolved this problem, the main reason is that the cuda version is not supported. I successfully compiled it on cuda 12.1 and nvidia 535 versions of the driver.

BJTUpupil avatar Jan 30 '24 13:01 BJTUpupil