Install SUTrA » Historique » Version 2
Damien Gratadour, 28/10/2013 08:27
1 | 2 | Damien Gratadour | h1. Install SUTrA |
---|---|---|---|
2 | |||
3 | 1 | Damien Gratadour | SUTrA was originally designed as an extension to the YoGA Yorick plugin. The version distributed on the SVN repository comes with a compatible version of YoGA. |
4 | |||
5 | 2 | Damien Gratadour | h2. System requirements |
6 | 1 | Damien Gratadour | |
7 | Your machine should be running Linux or Mac OS and should host a NVidia video card. NVidia devdriver as well as the CUDA toolkit and SDK should be installed. Please refer to the YoGA wiki for details. |
||
8 | |||
9 | Concerning the Yorick installation, you should have pygtk installed to allow for the use of the GUI mode. The easiest to get everything configured properly is probably to install glade-3 on either OS. |
||
10 | |||
11 | 2 | Damien Gratadour | h2. Installation process |
12 | 1 | Damien Gratadour | |
13 | SUTrA comes with a compatible version of YoGA. We've developed a unified install process for both YoGA and SUTrA. |
||
14 | |||
15 | First check out the latest version from the svn repository : |
||
16 | <pre> |
||
17 | svn co https://version-lesia.obspm.fr/repos/compass/trunk compass |
||
18 | </pre> |
||
19 | then go in the newly created directory and then trunk: |
||
20 | <pre> |
||
21 | cd compass/trunk |
||
22 | </pre> |
||
23 | once there, you need to modify system variables in the define_var.sh executable : |
||
24 | <pre> |
||
25 | emacs define_var.sh |
||
26 | </pre> |
||
27 | in this file define properly CUDA_ROOT, CULA_ROOT and YoGA path. Note that for the latter, as YoGA is distributed with SUTrA you should just point to the newly created trunk directory. On a Linux system you should normally have: |
||
28 | <pre> |
||
29 | export CUDA_ROOT=/usr/local/cuda |
||
30 | export CULA_ROOT=/usr/local/cula |
||
31 | export YOGA_DIR=/home/MyUserName/path2compass/trunk |
||
32 | </pre> |
||
33 | |||
34 | Once this is done, you're ready to compile the whole library. First run define_var.sh to define the system variables that will be used during the compilation process: |
||
35 | <pre> |
||
36 | ./define_var.sh |
||
37 | </pre> |
||
38 | |||
39 | then identify the absolute path to your Yorick executable using: |
||
40 | <pre> |
||
41 | which yorick |
||
42 | </pre> |
||
43 | and run the compilation script: |
||
44 | <pre> |
||
45 | ./reinstall absolute_path_of_yorick |
||
46 | </pre> |
||
47 | |||
48 | If you did not get any error, YoGA and SUTrA are now installed on your machine. You can check that everything is working by launching a GUI to test a simulation: |
||
49 | <pre> |
||
50 | yorick -i yoga_ao/ywidgets/widget_ao.i |
||
51 | </pre> |