Skip to content

Commit

Permalink
Merge branch 'main' of github.com:amrex-astro/workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Jan 10, 2024
2 parents d14f346 + feb8458 commit 643b291
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
26 changes: 25 additions & 1 deletion sphinx_docs/source/nersc-visualization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ in particular, something like::

module load python
conda init
conda create --name myenv python=3.8
conda create --name myenv python=3.11
conda activate myenv

then you can install yt as::
Expand All @@ -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
17 changes: 17 additions & 0 deletions sphinx_docs/source/nersc-workflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,23 @@ and an estimate of the start time can be found via:
to cancel a job, you would use ``scancel``.


Filesystems
^^^^^^^^^^^

We can run on the common filesystem, CFS, to share files with everyone
in the project. For instance, for project ``m3018``, we would do:

.. prompt:: bash

cd $CFS/m3018

There is a 20 TB quota here, which can be checked via:

.. prompt:: bash

showquota m3018


Chaining
^^^^^^^^

Expand Down

0 comments on commit 643b291

Please sign in to comment.