RAPIDS: Difference between revisions

no edit summary
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.


<!--T:5-->
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>


<!--T:6-->
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:
<!--T:8-->
<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:
<!--T:9-->
<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:
<!--T:10-->
<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:
<!--T:11-->
<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:
<!--T:11-->
<source lang="console">(rapids) Singularity> conda deactivate
<source lang="console">(rapids) Singularity> conda deactivate
Singularity> exit   
Singularity> exit   
cc_staff
123

edits