cc_staff
123
edits
Line 100: | Line 100: | ||
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 | ||
}} | |||
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 | |||
|name=run_script.sh | |||
|lang="sh" | |||
|contents= | |||
#!/bin/bash | |||
source /opt/conda/etc/profile.d/conda.sh | |||
conda activate rapids | |||
nvidia-smi | |||
python /path/to/my_rapids_code.py | |||
}} | }} | ||