Archive for June, 2013

Install GTSVM in Ubuntu using CUDA 5.0

June 12th, 2013 1 comment

In order to install this library for fast svm calculation you must download the src from:

Once downloaded you should type:

tar -xvzf gtsvm_src.tgz
cd gtsvm_src

After this you will probably have this error:
headers.hpp cuda_runtime.h no such file or directory

Open the Makefile and add the path to your cuda_runtime.h file. On line 29:

DEFINE_FLAGS := -I/usr/local/cuda-5.0/include/

That is the path in my installation. You should also comment line 24 –> “mex” subfolder. After this you should be able to compile.
If you want an even faster svm regardless the accuracy.
Add -use_fast_math at the beginning of line 36

NVCC_FLAGS := -use_fast_math.

Then a problem could came up:
/usr/bin/ld -lcudart cannot find

Find the path to you can use locate Then add this path to the line 71 and 88 in

LINKER_FLAGS := -L/usr/local/cuda-5.0/lib64

After this just type make and you should be able to compile the source code.

Categories: cuda, ubuntu Tags: , ,