Changes between Version 1 and Version 2 of cypress/STATA-Singularity
- Timestamp:
- 09/18/2026 09:55:06 AM (45 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
cypress/STATA-Singularity
v1 v2 6 6 7 7 Start an interactive session on the CentOS7 partition, 8 8 9 {{{#!bash 9 10 [uid@cypress2 ~]$ idev --partition=centos7 … … 17 18 Last login: Mon Jun 8 20:18:50 2015 from cypress1.cm.cluster 18 19 }}} 20 19 21 The default `idev` session reserves a node for '''one hour'''. If you want to work on it for a longer time, use `-t` option. See [[cypress/using#SubmittingInteractiveJobs]]. 20 22 21 23 Load the module 24 22 25 {{{#!bash 23 26 [uid@cypress01-066 ~]$ module load singularity 24 27 }}} 28 25 29 Set up the environment and run Rocky Linux with Singularity. 30 26 31 {{{#!bash 27 32 [uid@cypress01-066 ~]$ source $SingularityImageDir/setup_cypress.sh 28 33 [uid@cypress01-066 ~]$ singularity shell -s /bin/bash $SingularityImageDir/rockylinux-9.2.sif 29 34 }}} 35 30 36 You will get a command line prompt, `Apptainer>`. 31 Assuming `stata` is in your $PATH directory, run STATA on the command line, 37 38 Add `stata` directory to your $PATH if you haven't done so yet. 39 40 {{{#!bash 41 export PATH=$PATH:<your STATA directory> 42 }}} 43 44 Run STATA on the command line, 45 32 46 {{{#!bash 33 47 Apptainer> stata … … 88 102 89 103 # SET YOUR STATA DIRECTORY 90 STATA_DIR= /lustre/project/eisaac/opt/stata19104 STATA_DIR=<your STATA directory> 91 105 92 106 # RUN STATA … … 105 119 106 120 107 Stata can run with multiple threads. You can check the license info by 'creturn list' command on stata-window.121 Stata can run with multiple threads. You can check the license info by the 'creturn list' command in Stata. 108 122 109 123 {{{ … … 115 129 {{{#!bash 116 130 #!/bin/bash 117 #SBATCH --partition= defq# Partition131 #SBATCH --partition=centos7 # Partition 118 132 #SBATCH --qos=normal # Quality of Service 119 #SBATCH --job-name=STATA # Job Name133 #SBATCH --job-name=STATA-mp # Job Name 120 134 #SBATCH --time=24:00:00 # WallTime 121 135 #SBATCH --nodes=1 # Number of Nodes … … 124 138 #SBATCH --gres=mic:0 # Number of Co-Processors 125 139 126 module load stata 140 # SETUP SINGULARITY 141 module load singularity 142 source $SingularityImageDir/setup_cypress.sh 127 143 128 stata-mp -b do parappelcode 144 # SET YOUR STATA DIRECTORY 145 STATA_DIR=<your STATA directory> 146 147 # RUN STATA 148 singularity exec $SingularityImageDir/rockylinux-9.2.sif $STATA_DIR/stata-mp -b do parallelcode 149 129 150 }}}
