Changes between Version 1 and Version 2 of cypress/RunningRWithSingularity


Ignore:
Timestamp:
01/13/26 16:08:48 (29 hours ago)
Author:
Carl Baribault
Comment:

Filled out content

Legend:

Unmodified
Added
Removed
Modified
  • cypress/RunningRWithSingularity

    v1 v2  
    11[[PageOutline]]
    22= Running R with Singularity on Cypress =
    3 Coming soon
     3The [[https://rocker-project.org/ | Rocker Project]] is a website established to provide docker containers in the form of docker files for the R environment.
     4
     5In order to use any of those docker files on Cypress, we'll need to construct a container file - usually with '''.sif''' file extension - suitable for use with Singularity on Cypress. For reference in the following see [[wiki:Singularity]].
     6
     7Here's the sequence of commands to create and simply test a container file for the latest available R version - as provided the above website.
     8
     9== Start the interactive session ==
     10First, start an interactive session.
     11
     12'''For Workshop''' :
     13If your account is in the group '''workshop''', please use the following.
     14
     15{{{
     16[tulaneID@cypress1 ~]$idev --partition=workshop7 -c 2 # request 2 cores in the partition workshop7
     17Requesting 1 node(s)  task(s) to normal queue of workshop7 partition
     181 task(s)/node, 2 cpu(s)/task, 0 MIC device(s)/node
     19Time: 0 (hr) 60 (min).
     200d 0h 60m
     21Submitted batch job 3287405
     22JOBID=3287405 begin on cypress01-060
     23--> Creating interactive terminal session (login) on node cypress01-060.
     24--> You have 0 (hr) 60 (min).
     25--> Assigned Host List : /tmp/idev_nodes_file_tulaneID
     26Last login: Tue Jan 13 11:58:39 2026 from cypress1.cm.cluster
     27[tulaneID@cypress01-060 ~]$
     28}}}
     29
     30'''Non-workshop'''
     31{{{
     32[tulaneID@cypress1 ~]idev --partition=centos7 # start an interactive session in the partition centos7
     33Requesting 1 node(s)  task(s) to normal queue of centos7 partition
     341 task(s)/node, 20 cpu(s)/task, 0 MIC device(s)/node
     35Time: 0 (hr) 60 (min).
     360d 0h 60m
     37Submitted batch job 3288388
     38JOBID=3288388 begin on cypress01-066
     39--> Creating interactive terminal session (login) on node cypress01-066.
     40--> You have 0 (hr) 60 (min).
     41--> Assigned Host List : /tmp/idev_nodes_file_tulaneID
     42Last login: Tue Jan 13 14:09:07 2026 from cypress2.cm.cluster
     43[tulaneID@cypress01-066 ~]$
     44}}}
     45
     46== Construct and check the container image file ==
     47Then proceed as follows to construct the '''.sif''' container image file and check the R version.
     48
     49{{{
     50[tulaneID@cypress01-060 ~]$module load singularity/3.9.0 # load the singularity module
     51[tulaneID@cypress01-060 ~]$singularity pull docker://rocker/r-base:latest # takes a few minutes to construct file r-base_latest.sif
     52...
     53[tulaneID@cypress01-060 ~]$singularity exec r-base_latest.sif R --version # check the version of R
     54R version 4.5.2 (2025-10-31) -- "[Not] Part in a Rumble"
     55Copyright (C) 2025 The R Foundation for Statistical Computing
     56Platform: x86_64-pc-linux-gnu
     57
     58R is free software and comes with ABSOLUTELY NO WARRANTY.
     59You are welcome to redistribute it under the terms of the
     60GNU General Public License versions 2 or 3.
     61For more information about these matters see
     62https://www.gnu.org/licenses/.
     63
     64[tulaneID@cypress01-066 rstudio at 15:53:56]$
     65}}}