Skip to content

Error in "make" (Ubuntu GPU)  #264

Open

Description

@Song-Yuqi

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!

Activity

  1. lchizhova commented on May 16, 2023

    @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

  2. BJTUpupil commented on Dec 25, 2023

    @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.

  3. ZeyuanLin0215 commented on Jan 30, 2024

    @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?

  4. BJTUpupil commented on Jan 30, 2024

    @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?

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions