Xtra-Computing / thundersvm

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

Cuda 12 Support #273

Open nazgolTavabi opened 7 months ago

nazgolTavabi commented 7 months ago

Does this code support code 12? I recently updated my cuda and I'm no longer able to run my code.

Thank you

ghost commented 7 months ago
dll_path = r"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.3\\bin\\thundersvm.dll"
    thundersvm = CDLL(dll_path)

Yes, it works.

JaffelSong commented 5 months ago

Me too, my environment is CUDA 12.2, and the thundersvm.dll is correctly builded, while the python told me it cannot find the module and let me try using the full path with constructor syntax. Looking for someone can help me......

Boontjie commented 2 months ago

You need to the following in the python module for CUDA 12 import os os.add_dll_directory("C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.3\bin")