Xtra-Computing / thundersvm

ThunderSVM: A Fast SVM Library on GPUs and CPUs
Apache License 2.0
1.57k stars 218 forks source link

Error in "make" (Ubuntu GPU) #264

Open Song-Yuqi opened 1 year ago

Song-Yuqi commented 1 year ago

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!

lchizhova commented 1 year ago

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

BJTUpupil commented 11 months ago

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.

ZeyuanLin0215 commented 9 months ago

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?

BJTUpupil commented 9 months ago

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.