Changes between Version 1 and Version 2 of cypress/STATA


Ignore:
Timestamp:
11/22/22 14:10:43 (17 months ago)
Author:
fuji
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • cypress/STATA

    v1 v2  
    5454Last login: Mon Jun  8 20:18:50 2015 from cypress1.cm.cluster
    5555}}}
    56 The default `idev` session reserve a node for '''one hour'''. If you want to work on for longer time, use `-t` option. See [[cypress/using#SubmittingInteractiveJobs]].
     56The 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]].
    5757
    5858Load the module
     
    9393First, you should become familiar with do-files.
    9494
    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.
     95Make 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.
    9696
    9797Suppose we have `hello.do` file that contains:
     
    111111#SBATCH --time=24:00:00         # WallTime
    112112#SBATCH --nodes=1               # Number of Nodes
    113 #SBATCH --ntasks-per-node=1     # Number of tasks (MPI presseces)
     113#SBATCH --ntasks-per-node=1     # Number of tasks (MPI processes)
    114114#SBATCH --cpus-per-task=2       # Number of processors per task OpenMP threads()
    115115#SBATCH --gres=mic:0            # Number of Co-Processors
     
    125125}}}
    126126
    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 ===
     130Stata 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
     137The 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
     149module load stata
     150
     151stata-mp -b do parappelcode
     152}}}