GPU tools¶
Software tools useful for GPU jobs.
Using TensorBoard with conda¶
The log files from the TensorFlow computation must be stored under the MUST shared file system /mustfs/LAPP-DATA or /mustfs/MUST-DATA, or using symlinks such as /uds_data/<your_group>/<your_uid>/<your_dir> or /lapp_data/...
Open two SSH terminal windows connected to the same UI.
In the first terminal, run:
$ source .bashrc # loads conda (initialized by the miniconda installation)
$ conda activate <your_env> # an environment that includes tensorboard
$ cd <path_to_tensorboard_run_logs>
$ tensorboard --logdir=.
or launch only particular experiments:
To display several selected experiments in TensorBoard, create a new folder with symlinks to the desired experiments:
$ mkdir my_experiment_runs
$ cd my_experiment_runs
$ ln -s <path_to_exp1_folder> exp1_folder
$ ln -s <path_to_exp2_folder> exp2_folder
$ cd ..
and run:
If everything works, TensorBoard starts and the terminal shows:
Serving TensorBoard on localhost; to expose to the network, use a proxy or pass --bind_all
TensorBoard 2.6.0 at http://localhost:6008/ (Press CTRL+C to quit)
Note the <tensorboard_port> it reports. Port 6006 is the default, but if it is already in use, another port is chosen, as in this example. Press Ctrl+C to stop TensorBoard.
Then, in the second terminal window, open an SSH connection that forwards the <tensorboard_port> of the remote server to a local port of your choice:
Finally, open the localhost URL (http://localhost:6006/) in a browser.
Use of the NVIDIA HPC SDK¶
The NVIDIA HPC Software Development Kit version 21.9 is available on the latest GPU servers. It includes compilers, libraries and software tools, supporting GPU acceleration with standard C++ and Fortran and providing performance profiling and debugging tools. More information is available at https://developer.nvidia.com/hpc-sdk.
Using the nvc++ compiler, it is possible to execute C++17 code (for compute capabilities ≥ 6.0, working with G++-9 or newer) on GPUs. The use of the nvcc compiler requires compute capabilities ≥ 3.5.
You can refer to Pierre Aubert's course (CTA/LAPP) (in French). This course provides a simple Hadamard product example in C++, with a submission script you can use to get started quickly.
A Quick Start with nvc++ compiler is available.