Open ptrajdos opened 7 months ago
I encountered the same problem, did you solve it?
Hi,
Unfortunately, I haven't solved it yet.
Regards, Pawel
Same problem here.
I found that the svm_kernel::sum_kernel_values_instant
function is used in src/thundersvm/model/svmmodel.cpp
(the predict_dec_values_instant
function) :
However, this is a function declared in include/thundersvm/kernel/kernelmatrix_kernel.h
and there is only an implementation of CUDA in src/thundersvm/kernel/kernelmatrix_kernel.cu
.
Thus, the compilation will failed in CPU only mode.
I solved this problem in an ugly but effective way. After successful compilation, it can be trained and predicted correctly using the adult dataset.
Just comment out the following two lines of code:
This operation will not affect CPU training and prediction
@xichichixi That works
Hi.
Im getting an linker error while building thundersvm for working on CPU only. Im doing
As a result Im getting:
Indeed the shared object file do not contain this symbol. The following returns no lines:
Grepping the source to find this symbol indicates that the function is defined only in _./src/thundersvm/kernel/kernelmatrixkernel.cu which is not included in building process for CPU-only version. (Am I right?) Log of the following command is included.
grep.log
Host info: OS: Ubuntu 22.04.4 LTS x86_64 Kernel: 5.15.0-101-generic CPU: Intel i7-8665U (8) @ 4.800GHz GPU: Intel WhiskeyLake-U GT2 [UHD Graphics 620]
Best Regards, Pawel