cc_staff
123
edits
No edit summary |
No edit summary |
||
Line 42: | Line 42: | ||
If simply exploring the contents without doing any computations, you can use following commands to access the container shell of the Singularity image, e.g. called ''rapids.sif'' on any node without requesting any GPUs. | If simply exploring the contents without doing any computations, you can use following commands to access the container shell of the Singularity image, e.g. called ''rapids.sif'' on any node without requesting any GPUs. | ||
Load the Singularity module first: | Load the Singularity module first: | ||
<source lang="console">[name@server ~]$ module load singularity</source> | <source lang="console">[name@server ~]$ module load singularity</source> | ||
Then access the container shell: | Then access the container shell: | ||
<source lang="console">[name@server ~]$ singularity shell rapids.sif</source> | <source lang="console">[name@server ~]$ singularity shell rapids.sif</source> | ||
The shell prompt is then changed to: | The shell prompt is then changed to: | ||
<source lang="console">Singularity> | <source lang="console">Singularity> | ||
</source> | </source> | ||
Inside the singularity shell initiate Conda and activate RAPIDS environment: | Inside the singularity shell initiate Conda and activate RAPIDS environment: | ||
<source lang="console">Singularity> source /opt/conda/etc/profile.d/conda.sh | <source lang="console">Singularity> source /opt/conda/etc/profile.d/conda.sh | ||
Singularity> conda activate rapids | Singularity> conda activate rapids | ||
Line 62: | Line 62: | ||
The shell prompt in the rapids env is then changed to: | The shell prompt in the rapids env is then changed to: | ||
<source lang="console">(rapids) Singularity> | <source lang="console">(rapids) Singularity> | ||
</source> | </source> | ||
Then you can list available packages in the rapids env: | Then you can list available packages in the rapids env: | ||
<source lang="console">(rapids) Singularity> conda list | <source lang="console">(rapids) Singularity> conda list | ||
</source> | </source> | ||
To deactivate rapids env and exit from the container: | To deactivate rapids env and exit from the container: | ||
<source lang="console">(rapids) Singularity> conda deactivate | <source lang="console">(rapids) Singularity> conda deactivate | ||
Singularity> exit | Singularity> exit |