diff --git a/docs.it4i/software/nvidia-cuda.md b/docs.it4i/software/nvidia-cuda.md index c6f4b7388020f34b4e3c0c4c2cf169ed49d87a3c..17dd2edb1043e02f962c1b49f62fba601b439f6a 100644 --- a/docs.it4i/software/nvidia-cuda.md +++ b/docs.it4i/software/nvidia-cuda.md @@ -11,7 +11,7 @@ $ ml av cuda $ ml cuda **or** ml CUDA ``` -If the user code is hybrid and uses both CUDA and MPI, the MPI environment has to be set up as well. One way to do this is to use the PrgEnv-gnu module, which sets up the correct combination of the GNU compiler and MPI library: +If the user code is hybrid and uses both CUDA and MPI, the MPI environment has to be set up as well. One way to do this is to use the `PrgEnv-gnu` module, which sets up the correct combination of the GNU compiler and MPI library: ```console $ ml PrgEnv-gnu @@ -31,14 +31,14 @@ $ mkdir cuda-samples $ cp -R /apps/nvidia/cuda/6.5.14/samples/* ~/cuda-samples/ ``` -To compile examples, change directory to the particular example (here the example used is deviceQuery) and run "make" to start the compilation; +To compile examples, change directory to the particular example (here the example used is deviceQuery) and run `make` to start the compilation; ```console $ cd ~/cuda-samples/1_Utilities/deviceQuery $ make ``` -To run the code, the user can use a PBS interactive session to get access to a node from the qnvidia queue (note: use your project name with the -A parameter in the qsub command) and execute the binary file: +To run the code, the user can use a PBS interactive session to get access to a node from the qnvidia queue (note: use your project name with the `-A` parameter in the `qsub` command) and execute the binary file: ```console $ qsub -I -q qnvidia -A OPEN-0-0 @@ -286,7 +286,7 @@ int main(int argc, char **argv) - [cublasSetVector][c] - transfers data from CPU to GPU memory - [cublasGetVector][d] - transfers data from GPU to CPU memory -To compile the code using the NVCC compiler, the "-lcublas" compiler flag has to be specified: +To compile the code using the NVCC compiler, the `-lcublas` compiler flag has to be specified: ```console $ ml cuda