RAPIDS: Difference between revisions

Line 84: Line 84:
You would need to prepare two script files to submit your RAPIDS code execution to the Slurm queue, i.e. one for job submission script and one for job execution script.
You would need to prepare two script files to submit your RAPIDS code execution to the Slurm queue, i.e. one for job submission script and one for job execution script.


An example of a job submission script, e.g. ''submit.sh''
Here is an example of a job submission script, e.g. ''submit.sh'':
{{File
{{File
   |name=submit.sh
   |name=submit.sh
Line 101: Line 101:
singularity run --nv -B /home -B /scratch rapids.sif /path/to/run_script.sh
singularity run --nv -B /home -B /scratch rapids.sif /path/to/run_script.sh
}}
}}
Where '''--nv''' is to bind mount the GPU driver on the host to the container, so the GPU device can be accessed from inside the singularity container.  
Where '''--nv''' is to bind mount the GPU driver on the host to the container, so the GPU device can be accessed from inside the singularity container.  


An example of a job execution script, e.g. ''run_script.sh'', which is a bash script that you would like to run in the container:  
Here is an example of a job execution script, e.g. ''run_script.sh'', which is a bash script that you would like to run in the container:  
{{File
{{File
   |name=run_script.sh
   |name=run_script.sh
cc_staff
123

edits