Changes between Version 1 and Version 2 of cypress/STATA-Singularity


Ignore:
Timestamp:
09/18/2026 09:55:06 AM (45 hours ago)
Author:
fuji
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • cypress/STATA-Singularity

    v1 v2  
    66
    77Start an interactive session on the CentOS7 partition,
     8
    89{{{#!bash
    910[uid@cypress2 ~]$ idev --partition=centos7
     
    1718Last login: Mon Jun  8 20:18:50 2015 from cypress1.cm.cluster
    1819}}}
     20
    1921The 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]].
    2022
    2123Load the module
     24
    2225{{{#!bash
    2326[uid@cypress01-066 ~]$ module load singularity
    2427}}}
     28
    2529Set up the environment and run Rocky Linux with Singularity.
     30
    2631{{{#!bash
    2732[uid@cypress01-066 ~]$ source $SingularityImageDir/setup_cypress.sh
    2833[uid@cypress01-066 ~]$ singularity shell -s /bin/bash $SingularityImageDir/rockylinux-9.2.sif
    2934}}}
     35
    3036You will get a command line prompt, `Apptainer>`.
    31 Assuming `stata` is in your $PATH directory, run STATA on the command line,
     37
     38Add `stata` directory to your $PATH if you haven't done so yet.
     39
     40{{{#!bash
     41export PATH=$PATH:<your STATA directory>
     42}}}
     43
     44Run STATA on the command line,
     45
    3246{{{#!bash
    3347Apptainer> stata
     
    88102
    89103# SET YOUR STATA DIRECTORY
    90 STATA_DIR=/lustre/project/eisaac/opt/stata19
     104STATA_DIR=<your STATA directory>
    91105
    92106# RUN STATA
     
    105119
    106120
    107 Stata can run with multiple threads. You can check the license info by 'creturn list' command on stata-window.
     121Stata can run with multiple threads. You can check the license info by the 'creturn list' command in Stata.
    108122
    109123{{{
     
    115129{{{#!bash
    116130#!/bin/bash
    117 #SBATCH --partition=defq        # Partition
     131#SBATCH --partition=centos7     # Partition
    118132#SBATCH --qos=normal            # Quality of Service
    119 #SBATCH --job-name=STATA        # Job Name
     133#SBATCH --job-name=STATA-mp     # Job Name
    120134#SBATCH --time=24:00:00         # WallTime
    121135#SBATCH --nodes=1               # Number of Nodes
     
    124138#SBATCH --gres=mic:0            # Number of Co-Processors
    125139
    126 module load stata
     140# SETUP SINGULARITY
     141module load singularity
     142source $SingularityImageDir/setup_cypress.sh
    127143
    128 stata-mp -b do parappelcode
     144# SET YOUR STATA DIRECTORY
     145STATA_DIR=<your STATA directory>
     146
     147# RUN STATA
     148singularity exec $SingularityImageDir/rockylinux-9.2.sif $STATA_DIR/stata-mp -b do parallelcode
     149
    129150}}}