Projet

Général

Profil

Install YoGA » Historique » Version 1

Damien Gratadour, 25/10/2013 09:22

1 1 Damien Gratadour
h1. Install YoGA
2
3
This page will guide you through the process of getting YoGA up and running on your machine
4
5
h2. Why CUDA ?
6
7
Yoga is built on top of the CUDA toolkit which is NVIDIA proprietary software. It is however freely available from NVIDIA's website. CUDA has been receiving a lot of support from NVIDIA and the GPGPU community in general and provides a large collection of tools to perform scientific computing (cufft, cublas, curand). Moreover, several libraries like "cudpp":http://code.google.com/p/cudpp/ or "MAGMA":http://icl.cs.utk.edu/magma/index.html have been developed using CUDA and provide additional functionalities very useful for scientific computing. CUDA thus appeared to us as the best option to quickly deploy a general toolkit for a "GPU accelerated Yorick".
8
9
The drawback is Yoga being doomed to be used on computers equipped with NVIDIA GPU card. You'll find here the list of "CUDA-capable video cards":http://www.nvidia.com/object/cuda_gpus.html Yoga has been tested on a variety of platforms, from laptops to servers with various grades of GPU cards from mobile series to high-end scientific-grade cards.
10
11
Concerning the OS, Yoga has been tested on linux and Mac OS with success. The following instructions apply for both.
12
13
h2. Install NVIDIA's devdriver, toolkit and SDK
14
15
go to the "nvidia cuda website":http://developer.nvidia.com/cuda-toolkit and get the 3 associated files for your distribution (the ubuntu packages install well on debian using the -keep option)
16
17
on linux, to compile the driver, you'll need to kill the x server first if you have one running. the executable will compile the new module and load it. you just need to reload your desktop manager (if needed) to be back on your feet.
18
19
It is not required but recommended to install NVIDIA's SDK. First it allows you to check your CUDA installation and it also provides you with some example codes.
20
21
On many OS, it is required to add
22
23
<pre>
24
--compiler-options -fpermissive
25
</pre>
26
27
to the nvcc (NVIDIA C compiler) flags in the common.mk file to be able to compile the whole SDK. this option is present by default in Yoga and will trigger a warning signal :
28
29
<pre>
30
cc1: warning: command line option "-fpermissive" is valid for C++/ObjC++ but not for C
31
</pre>
32
33
at compilation. This will not impact execution of the code. It is linked to newer versions of gcc that have stricter compilation rules.
34
35
h2. Install Yorick
36
37
You get can Yorick from here : http://dhmunro.github.com/yorick-doc/ . This webpage will help you as well : http://www.maumae.net/yorick/doc/index.php. The associated forum provides a lot of help.
38
39
40
h2. Download & Install YoGA
41
42
* You have to contact us in order to get a binary library libyoga.so
43
* Download the necessary yorick files
44
45
then go to the newly created yorick-yoga directory and update the Makefile with a:
46
47
<pre>
48
yorick -batch make.i
49
</pre>
50
51
check the path to access the CUDA libs (by default : /usr/local/cuda).
52
53
To get the full flavor of Yoga, you need an additional CUDA library : "cudpp":http://code.google.com/p/cudpp/. The following command will do everything from downloading the package to moving the proper files to the proper place for you : 
54
55
<pre>
56
make cudpp
57
</pre>
58
59
then a standard : 
60
61
<pre>
62
make && make install
63
</pre>
64
65
will get you up and running !
66
67
There are some check scripts available in check_yoga.i that allow you to check your installation.