Install the platform » Historique » Version 2
Damien Gratadour, 10/11/2013 14:43
| 1 | 1 | Damien Gratadour | h1. Install the platform |
|---|---|---|---|
| 2 | |||
| 3 | The COMPASS platform is distributed as a single bundle of CArMA and SuTrA libraries and YoGA and its AO extension for Yorick. |
||
| 4 | |||
| 5 | h2. Hardware requirements |
||
| 6 | 2 | Damien Gratadour | |
| 7 | 1 | Damien Gratadour | The system must contain at least an x86 CPU and a CUDA capable GPU. list of compatible GPUs can be found here (). Specific requirements apply to clusters (to be updated). |
| 8 | |||
| 9 | h2. Environment requirements |
||
| 10 | 2 | Damien Gratadour | |
| 11 | 1 | Damien Gratadour | The system must be running a 64 bit distribution of Linux or Mac OS with the latest NVIDIA drivers and CUDA toolkit. |
| 12 | |||
| 13 | Additionally, Yorick should be installed. |
||
| 14 | |||
| 15 | |||
| 16 | h2. Installation process |
||
| 17 | |||
| 18 | First check out the latest version from the svn repository : |
||
| 19 | <pre> |
||
| 20 | svn co https://version-lesia.obspm.fr/repos/compass/trunk compass |
||
| 21 | </pre> |
||
| 22 | then go in the newly created directory and then trunk: |
||
| 23 | <pre> |
||
| 24 | cd compass/trunk |
||
| 25 | </pre> |
||
| 26 | once there, you need to modify system variables in the define_var.sh executable : |
||
| 27 | <pre> |
||
| 28 | emacs define_var.sh |
||
| 29 | </pre> |
||
| 30 | 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: |
||
| 31 | <pre> |
||
| 32 | export CUDA_ROOT=/usr/local/cuda |
||
| 33 | export CULA_ROOT=/usr/local/cula |
||
| 34 | export YOGA_DIR=/home/MyUserName/path2compass/trunk |
||
| 35 | </pre> |
||
| 36 | |||
| 37 | 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: |
||
| 38 | <pre> |
||
| 39 | ./define_var.sh |
||
| 40 | </pre> |
||
| 41 | |||
| 42 | then identify the absolute path to your Yorick executable using: |
||
| 43 | <pre> |
||
| 44 | which yorick |
||
| 45 | </pre> |
||
| 46 | and run the compilation script: |
||
| 47 | <pre> |
||
| 48 | ./reinstall absolute_path_of_yorick |
||
| 49 | </pre> |
||
| 50 | |||
| 51 | 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: |
||
| 52 | <pre> |
||
| 53 | yorick -i yoga_ao/ywidgets/widget_ao.i |
||
| 54 | </pre> |