Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
gpu [2017/03/16 17:10] kocmanek [Basic commands] |
gpu [2017/05/04 10:37] kocmanek [Using cluster] |
||
---|---|---|---|
Line 80: | Line 80: | ||
qsubmit --gpumem=2G --queue=" | qsubmit --gpumem=2G --queue=" | ||
| | ||
+ | It is recommended to use priority -100 if you are not rushing for the results and don't need to leap over your colleagues jobs. | ||
==== Basic commands ==== | ==== Basic commands ==== | ||
+ | |||
+ | lspci | ||
+ | # is any such hardware there? | ||
+ | nvidia-smi | ||
+ | # more details, incl. running processes on the GPU | ||
+ | # nvidia-* are typically located in /usr/bin | ||
+ | watch nvidia-smi | ||
+ | # For monitoring GPU activity in a separate terminal (thanks to Jindrich Libovicky for this!) | ||
+ | nvcc --version | ||
+ | # this should tell CUDA version | ||
+ | # nvcc is typically installed in / | ||
+ | theano-test | ||
+ | # dela to vubec neco uzitecneho? :-) | ||
+ | # theano-* are typically located in / | ||
+ | / | ||
+ | # shows CUDA capability etc. | ||
+ | | ||
+ | === Select GPU device === | ||
+ | |||
+ | Use variable CUDA_VISIBLE_DEVICES to constrain tensorflow to compute only on the selected one. For the use of first GPU use (GPU queue do this for you): | ||
+ | export CUDA_VISIBLE_DEVICES=0 | ||
+ | |||
+ | To list available devices, use: | ||
+ | / | ||
+ | |||
===== Performance tests ===== | ===== Performance tests ===== | ||
Line 105: | Line 131: | ||
- | ===== Installed toolkits ===== | ||
- | |||
- | //This should mention where each interesting toolkit lives (on a particular machine).// | ||
- | |||
- | ==== TensorFlow ==== | ||
- | |||
- | [[https:// | ||
- | |||
- | OP: I created [[https:// | ||
- | |||
- | === Select GPU device === | ||
- | |||
- | Use variable CUDA_VISIBLE_DEVICES to constrain tensorflow to compute only on the selected one. For the use of first GPU use: | ||
- | < | ||
- | |||
- | To list available devices, use: | ||
- | < | ||
===== Links ===== | ===== Links ===== |