Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error thunderSVM Cannot open include file: 'cub/cub.cuh' #269

Open
radhaagr opened this issue Sep 20, 2023 · 1 comment
Open

build error thunderSVM Cannot open include file: 'cub/cub.cuh' #269

radhaagr opened this issue Sep 20, 2023 · 1 comment

Comments

@radhaagr
Copy link

radhaagr commented Sep 20, 2023


FileNotFoundError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_15480/1246353311.py in
----> 1 from thundersvm import SVC

c:\users<>\appdata\local\programs\python\python37\lib\site-packages\thundersvm_init_.py in
8 """
9 name = "thundersvm"
---> 10 from .thundersvm import *

c:\users<>\appdata\local\programs\python\python37\lib\site-packages\thundersvm\thundersvm.py in
50 thundersvm = CDLL(lib_path)
51 else:
---> 52 raise FileNotFoundError("Please build the library first!")
53 SVM_TYPE = ['c_svc', 'nu_svc', 'one_class', 'epsilon_svr', 'nu_svr']
54 KERNEL_TYPE = ['linear', 'polynomial', 'rbf', 'sigmoid', 'precomputed']

FileNotFoundError: Please build the library first!

@radhaagr
Copy link
Author

radhaagr commented Sep 26, 2023

I tried to build the thunderSVM with VS 2019 and Cuda 10.2, but the build has failed with below error -
Command to get the solution file-
cmake .. -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=TRUE -DBUILD_SHARED_LIBS=TRUE -DBUILD_TESTS=OFF -DUSE_CUDA=ON -G "Visual Studio 16 2019"
when I try to build the thundersvm solution , it results in below error
2>C:/thundersvm/src/thundersvm/kernel/kernelmatrix_kernel.cu(12): fatal error C1083: Cannot open include file: 'cub/cub.cuh': No such file or directory

If I include path of cub directory in CMake file -
include_directories(“C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.2/include/thrust/system/cuda/detail”)
it resulted in a lot of undefined symbol errors.

device../iterator/arg_index_input_iterator.cuh(120): error : KeyValuePair is not a template
2>
2>C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\include\thrust\system\cuda\detail\cub\device\dispatch../../agent/agent_reduce.cuh(65): error : identifier "BlockReduceAlgorithm" is undefined
2>
2>C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\include\thrust\system\cuda\detail\cub\device\dispatch../../agent/agent_reduce.cuh(66): error : identifier "CacheLoadModifier" is undefined
2>
2>C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\include\thrust\system\cuda\detail\cub\device\dispatch../../agent/agent_reduce.cuh(76): error : identifier "BlockReduceAlgorithm" is undefined

@radhaagr radhaagr changed the title build error during import from thunderSVM build error thunderSVM Cannot open include file: 'cub/cub.cuh' Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant