Home > cuda, ubuntu > Install GTSVM in Ubuntu using CUDA 5.0

Install GTSVM in Ubuntu using CUDA 5.0

In order to install this library for fast svm calculation you must download the src from: http://ttic.uchicago.edu/~cotter/projects/gtsvm/.

Once downloaded you should type:

tar -xvzf gtsvm_src.tgz
cd gtsvm_src
make

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

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
Solution:

Find the path to libcudart.so you can use locate libcudart.so. 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.

Advertisements
Categories: cuda, ubuntu Tags: , ,
  1. Mohamad Rezaei
    May 15, 2014 at 6:32 am

    How can we use gtsvm for regression, and not only for classification?

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: