Changes between Version 1 and Version 2 of cypress/STATA
- Timestamp:
- 11/22/22 14:10:43 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
cypress/STATA
v1 v2 54 54 Last login: Mon Jun 8 20:18:50 2015 from cypress1.cm.cluster 55 55 }}} 56 The default `idev` session reserve a node for '''one hour'''. If you want to work on forlonger time, use `-t` option. See [[cypress/using#SubmittingInteractiveJobs]].56 The default `idev` session reserve a node for '''one hour'''. If you want to work on it for a longer time, use `-t` option. See [[cypress/using#SubmittingInteractiveJobs]]. 57 57 58 58 Load the module … … 93 93 First, you should become familiar with do-files. 94 94 95 Make sure your do-files work correctly. It is recommended to test your do-files on local machine or on an interactive session with a small data for a short time.95 Make sure your do-files work correctly. It is recommended to test your do-files on the local machine or on an interactive session with a small data for a short time. 96 96 97 97 Suppose we have `hello.do` file that contains: … … 111 111 #SBATCH --time=24:00:00 # WallTime 112 112 #SBATCH --nodes=1 # Number of Nodes 113 #SBATCH --ntasks-per-node=1 # Number of tasks (MPI pr esseces)113 #SBATCH --ntasks-per-node=1 # Number of tasks (MPI processes) 114 114 #SBATCH --cpus-per-task=2 # Number of processors per task OpenMP threads() 115 115 #SBATCH --gres=mic:0 # Number of Co-Processors … … 125 125 }}} 126 126 127 ''''slurmscript'''' is the file name of above SLURM script. The results will be stored in ''''hello.log''''. 127 ''''slurmscript'''' is the file name of the above SLURM script. The results will be stored in ''''hello.log''''. 128 129 === STATA-MP === 130 Stata can run with multiple threads. You can check the license info by 'creturn list' command on stata-window. 131 132 {{{ 133 c(processors) = 8 (Stata/MP, set processors) 134 c(processors_lic) = 8 135 }}} 136 137 The example above shows the default is 8 cores. So 138 {{{#!bash 139 #!/bin/bash 140 #SBATCH --partition=defq # Partition 141 #SBATCH --qos=normal # Quality of Service 142 #SBATCH --job-name=STATA # Job Name 143 #SBATCH --time=24:00:00 # WallTime 144 #SBATCH --nodes=1 # Number of Nodes 145 #SBATCH --ntasks-per-node=1 # Number of tasks (MPI processes) 146 #SBATCH --cpus-per-task=8 # Number of processors per task OpenMP threads() 147 #SBATCH --gres=mic:0 # Number of Co-Processors 148 149 module load stata 150 151 stata-mp -b do parappelcode 152 }}}