Skip to content

Commit

Permalink
add example script
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Jan 3, 2024
1 parent 100e0b9 commit 18956ab
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions sphinx_docs/source/nersc-visualization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,27 @@ to deactivate conda, do::
conda deactivate


A sample submission script to run a python script on 1 CPU on 1 node is:

.. code::
#!/bin/bash
#SBATCH -A m3018
#SBATCH -C cpu
#SBATCH -J vis
#SBATCH -o vis_%j.out
#SBATCH -t 0:01:00
#SBATCH -N 1
#SBATCH -c 1
#SBATCH --ntasks-per-node=1
#SBATCH -q regular
export OMP_NUM_THREADS=8
export OMP_PLACES=cores
export OMP_PROC_BIND=spread
module load python
conda activate myenv
srun python massive_star_multi.py plt19862

0 comments on commit 18956ab

Please sign in to comment.