From 100e0b965285674558204cd04b5b54083e6fd903 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Wed, 3 Jan 2024 14:42:21 -0500 Subject: [PATCH 1/3] update python version --- sphinx_docs/source/nersc-visualization.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx_docs/source/nersc-visualization.rst b/sphinx_docs/source/nersc-visualization.rst index ad17eb0..e24c67b 100644 --- a/sphinx_docs/source/nersc-visualization.rst +++ b/sphinx_docs/source/nersc-visualization.rst @@ -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:: From 18956abae26211817f80af4df938f31cfc4a18c0 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Wed, 3 Jan 2024 15:27:48 -0500 Subject: [PATCH 2/3] add example script --- sphinx_docs/source/nersc-visualization.rst | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/sphinx_docs/source/nersc-visualization.rst b/sphinx_docs/source/nersc-visualization.rst index e24c67b..657b2b6 100644 --- a/sphinx_docs/source/nersc-visualization.rst +++ b/sphinx_docs/source/nersc-visualization.rst @@ -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 From feb845801a2fadbff4b4f520f569975238fc9c43 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Fri, 5 Jan 2024 12:27:09 -0500 Subject: [PATCH 3/3] add filesystem / quota info for NERSC --- sphinx_docs/source/nersc-workflow.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/sphinx_docs/source/nersc-workflow.rst b/sphinx_docs/source/nersc-workflow.rst index b495623..db708e1 100644 --- a/sphinx_docs/source/nersc-workflow.rst +++ b/sphinx_docs/source/nersc-workflow.rst @@ -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 ^^^^^^^^