Compilation error
DmitryUlyanov opened this issue · 0 comments
DmitryUlyanov commented
Hello, I have problems compiling the library
Linking CXX executable WUSVM_train
CMakeFiles/WUSVM_train.dir/WUSVM_train.cpp.o: In function `lasp::SVM_exact<double>::train(lasp::LaspMatrix<double>, lasp::LaspMatrix<int>)':
WUSVM_train.cpp:(.text._ZN4lasp9SVM_exactIdE5trainENS_10LaspMatrixIdEENS2_IiEE[_ZN4lasp9SVM_exactIdE5trainENS_10LaspMatrixIdEENS2_IiEE]+0x3b8): undefined reference to `int lasp::device_convert<double, int>(lasp::DeviceParams, int*, double*, unsigned long, unsigned long, unsigned long)'
collect2: error: ld returned 1 exit status
make[2]: *** [WUSVM_train] Error 1
make[1]: *** [CMakeFiles/WUSVM_train.dir/all] Error 2
make: *** [all] Error 2
I tried both with CUDA 7.5 and 6.5, maybe another version of gcc is needed?
Also any chance of porting this to newer versions of CUDA ? When compiling with CUDA 7.5 but using CIDA 6.0 flag it raises when compiling
/home/dmitry/git/wusvm/wusvm/device_context.h(152): error: identifier "cudaDevAttrManagedMemSupported" is undefined
Thank you!