thundersvm icon indicating copy to clipboard operation
thundersvm copied to clipboard

CUDA 10.0 Linux Build

Open CMobley7 opened this issue 5 years ago • 17 comments

I see there is a CUDA 10 Window's build. Is there no CUDA 10 Linux's build?

CMobley7 avatar Sep 18 '19 15:09 CMobley7

The default pip install should work fine. If you want to build a wheel file for your specific environment, please refer to build-pyhon-wheel-file link for detailed instructions.

zeyiwen avatar Sep 19 '19 01:09 zeyiwen

@zeyiwen Hi, I had the same question as OP. The pip install does not work with CUDA 10.0 as you suggest. It gives me the error: libcusparse.so.9.0: cannot open shared object file: No such file or directory which indicates that it is built with CUDA 9.0. Is there a python 3.7 CUDA 10.0 linux build available or would we have to build it ourselves?

sensharma avatar Oct 14 '19 16:10 sensharma

Currently, you need to build one by yourself. We will build a wheel file for CUDA 10.0. Please stay tuned.

zeyiwen avatar Oct 17 '19 03:10 zeyiwen

Hi @CMobley7 @sensharma Would you be able to build a wheel file of CUDA 10 and share it with us? We can upload it to the repository.

zeyiwen avatar Oct 17 '19 03:10 zeyiwen

Hi @CMobley7 @sensharma Would you be able to build a wheel file of CUDA 10 and share it with us? We can upload it to the repository.

@zeyiwen I'm very new to this but I've attempted to build a wheel with py37 and cuda10 on linux (ubuntu18.04). All 34 test cases on https://github.com/Xtra-Computing/thundersvm/blob/master/docs/how-to.md and the 2 examples on https://github.com/Xtra-Computing/thundersvm/tree/master/python seem to be running fine.

But I don't know how to check if it is using the gpu (I think it uses it by default?) or if it is correctly using cuda10. Is there something in the API that can be used to check this?

The test output is attached if you want to have a look. Can't attach the .whl here. Let me know how to share it so you can inspect.

tsvm_test_output.txt

sensharma avatar Oct 17 '19 12:10 sensharma

It appears that your program only uses CPUs. Please clone a new ThunderSVM and follow the instruction here to build the wheel file.

After building the wheel file, please replace the thundersvm-0.3.3-py3-none-linux_amd64.whl file under python/dist/ directory of ThunderSVM.

You can open another terminal and execute watch nvidia-smi to monitor if your program uses GPUs.

zeyiwen avatar Oct 17 '19 12:10 zeyiwen

Those were the instructions I followed in the first place. Tried it again - same result. Doesn't seem to be using the GPU. Have attached the make output - there is a warning in it that may tell you what might be going wrong. Any flag I need to use during make that is not mentioned in the instructions?

tsvm_make_output.txt

sensharma avatar Oct 17 '19 14:10 sensharma

@sensharma, if you're still having problems tomorrow let me know and I'll make the wheel file.

CMobley7 avatar Oct 17 '19 18:10 CMobley7

@CMobley7 I am still stuck in the same situation. Would be great if you could have a go at your end.

sensharma avatar Oct 18 '19 13:10 sensharma

@CMobley7 could you provide your wheel file, please. I have the same problem as @sensharma I get the error: libcusparse.so.9.0: cannot open shared object file: No such file or directory

and would it be possible for me to use python 3.6? or do your wheel file will only support python 3.7? Thanks

ghost avatar Oct 28 '19 06:10 ghost

Who can provide the wheel file for CUDA10 under the Linux system ?

1113571287 avatar Jan 06 '20 12:01 1113571287

Here is a wheel file I generated per the directions above.

wheel_file.zip

I have verified

$ ldd libthundersvm.so | grep cuda libcusparse.so.10 => /usr/local/cuda/lib64/libcusparse.so.10 (0x00007f5a10105000)

@zeyiwen can you please incorporate this into a new release?

mjanson avatar Feb 26 '20 16:02 mjanson

Sure. If it works, we will add it in the new release.

zeyiwen avatar Mar 03 '20 09:03 zeyiwen

Any word on the new release? I'm in a restricted VM behind a proxy server with no easy way to get files sin, other than pip install. Thanks!

GregSilverman avatar May 23 '20 19:05 GregSilverman

Hi Everybody,

I compiled correctly the libraries for cuda 10.20. But when using the libraries the error I got is this one. Do you have any suggestion to solve this?

FATAL [default] Check failed: [error == cudaSuccess] CUDA driver version is insufficient for CUDA runtime version

mcamplaniROVCO avatar Jul 20 '20 13:07 mcamplaniROVCO

Hi Everybody,

I compiled correctly the libraries for cuda 10.20. But when using the libraries the error I got is this one. Do you have any suggestion to solve this?

FATAL [default] Check failed: [error == cudaSuccess] CUDA driver version is insufficient for CUDA runtime version

Have you fixed it?I also cuda 10.2

zhDai avatar Nov 19 '20 09:11 zhDai

Hi everyone,

I am trying to build thundersvm on cuda 11.0, but i always get:

/home/jovyan/dp/thundersvm-master/src/thundersvm/kernel/kernelmatrix_kernel.cu:5:10: fatal error: cusparse.h: No such file or directory #include <cusparse.h> ^~~~~~~~~~~~ compilation terminated.

I have tried multiple posted fixes and solutions but nothing seems to be working. Do you have any ideas?

icobx avatar Jan 30 '22 17:01 icobx