Skip to content

Commit e181924

Browse files
author
Trevor Keller
committed
Initial conversion for NERSC
1 parent 9208719 commit e181924

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+611
-79
lines changed

MAINTENANCE.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ of the HPC Carpentry community.
3838

3939
### Slack
4040

41-
The main Carpentries Slack channel is reachable at
42-
[swcarpentry.slack.com][swc-slack]. To become a member, you can
43-
trigger in invitation from [here][slack-invite].
41+
HPC Carpentry participates in the The Carpentries' Slack channel.
42+
Click through for a [Slack invite][slack-invite].
4443

4544
You can go directly to the HPC Carpentry sub-channel at
4645
[#hpc-carpentry][hpc-slack]. These are the things to bookmark —
@@ -91,8 +90,8 @@ assigned to `CHECKERS` near the bottom of `bin/lesson_check.py`.
9190
[project-github]: https://github.com/hpc-carpentry
9291
[coord-repo]: https://github.com/hpc-carpentry/coordination
9392
[mainsite-repo]: https://github.com/hpc-carpentry/hpc-carpentry.org
94-
[swc-slack]: https://swcarpentry.slack.com
95-
[hpc-slack]: https://swcarpentry.slack.com/#hpc-carpentry
96-
[slack-invite]: https://swc-slack-invite.herokuapp.com
93+
[swc-slack]: https://carpentries.slack.com
94+
[hpc-slack]: https://carpentries.slack.com/#hpc-carpentry
95+
[slack-invite]: https://slack-invite.carpentries.org/
9796
[topicbox]: https://carpentries.topicbox.com
9897
[zenodo]: https://zenodo.org/

config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#------------------------------------------------------------
22
# Values for this lesson.
33
#------------------------------------------------------------
4-
4+
---
55
# Which carpentry is this (swc, dc, lc, or cp)?
66
# swc: Software Carpentry
77
# dc: Data Carpentry
@@ -17,7 +17,7 @@ carpentry: 'cp'
1717
# carpentry_description: "Custom Carpentry"
1818

1919
# Overall title for pages.
20-
title: 'Introduction to High-Performance Computing'
20+
title: 'Introduction to High-Performance Computing at NERSC'
2121

2222
# Date the lesson was created (YYYY-MM-DD, this is empty by default)
2323
created: 2017-03-24
@@ -33,7 +33,7 @@ life_cycle: 'alpha'
3333
license: 'CC-BY 4.0'
3434

3535
# Link to the source repository for this lesson
36-
source: 'https://github.com/ocaisa/probable-pancake'
36+
source: 'https://github.com/hpc-workshops/nersc-hpc-intro'
3737

3838
# Default branch of your lesson
3939
branch: 'main'
@@ -94,7 +94,7 @@ profiles:
9494
# sandpaper and varnish versions) should live
9595

9696

97-
carpentry_description: Lesson Description
98-
url: 'https://ocaisa.github.io/probable_pancake'
97+
carpentry_description: "HPC Intro at NERSC"
98+
url: 'https://hpc-workshops.github.io/perlmutter-hpc-intro'
9999
analytics: carpentries
100100
lang: en

episodes/12-cluster.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ sends back. We will use the Secure SHell protocol (or SSH) to open an encrypted
7575
network connection between two machines, allowing you to send & receive text
7676
and data without having to worry about prying eyes.
7777

78-
![Connect to cluster](fig/connect-to-remote.svg){alt-text="Connect to cluster"}
78+
![Connect to cluster](fig/connect-to-remote.svg){alt="Connect to cluster"}
7979

8080
Make sure you have a SSH client installed on your laptop. Refer to the
8181
[setup](../index.md) section for more details. SSH clients are

episodes/epcc_config.yaml renamed to episodes/files/snippets/EPCC_ARCHER2_slurm/lesson_config_epcc.yaml

File renamed without changes.

episodes/lesson_config_hpcc.yaml renamed to episodes/files/snippets/HPCC_MagicCastle_slurm/lesson_config_hpcc.yaml

File renamed without changes.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# ----------------
2+
# NERSC Perlmutter
3+
# ----------------
4+
# If you need an account, please visit <nersc.gov>
5+
#
6+
# Compute responsibly.
7+
---
8+
snippets: "NERSC_Perlmutter_slurm"
9+
10+
local:
11+
prompt: "local:~$"
12+
bash_shebang: "#!/bin/bash"
13+
14+
remote:
15+
name: "Perlmutter"
16+
host_id: "Perlmutter"
17+
login: "saul.nersc.gov"
18+
host: "saul"
19+
node: "pm001"
20+
location: "saul.nersc.gov"
21+
homedir: "/home"
22+
user: "user"
23+
prompt: 'remote:~$'
24+
prompt_work: "user@saul:/work/user"
25+
module_python3: "Python"
26+
bash_shebang: "#!/bin/bash"
27+
28+
sched:
29+
name: "Slurm"
30+
reservation: "trn010"
31+
submit:
32+
name: "sbatch"
33+
options: ""
34+
queue:
35+
debug: "smnode"
36+
testing: "cpubase_bycore_b1"
37+
status: "squeue"
38+
flag:
39+
user: "-u user"
40+
interactive: "--pty /bin/bash"
41+
histdetail: "-l -j"
42+
name: "--job-id="
43+
time: "--time="
44+
queue: "--constraint="
45+
nodes: "--nodes="
46+
tasks: "--ntasks="
47+
del: "scancel"
48+
interactive: "srun"
49+
info: "sinfo"
50+
comment: "#SBATCH"
51+
hist: "sacct -u user"
52+
hist_filter: ""
53+
partition: "cpu"
54+
qos: "debug"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
```output
2+
PARTITION AVAIL TIMELIMIT NODES STATE NODELIST
3+
cpubase_bycore_b1* up infinite 4 idle node[1-2],smnode[1-2]
4+
node up infinite 2 idle node[1-2]
5+
smnode up infinite 2 idle smnode[1-2]
6+
```
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
::: challenge
2+
3+
## Explore a Worker Node
4+
5+
Finally, let's look at the resources available on the worker nodes
6+
where your jobs will actually run. Try running this command to see
7+
the name, CPUs and memory available on one of the worker nodes:
8+
9+
```bash
10+
`r config$remote$prompt` sinfo -o "%n %c %m" | column -t
11+
```
12+
:::
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
```
2+
~~~ /cvmfs/pilot.eessi-hpc.org/2020.12/software/x86_64/amd/zen2/modules/all ~~~
3+
Bazel/3.6.0-GCCcore-x.y.z NSS/3.51-GCCcore-x.y.z
4+
Bison/3.5.3-GCCcore-x.y.z Ninja/1.10.0-GCCcore-x.y.z
5+
Boost/1.72.0-gompi-2020a OSU-Micro-Benchmarks/5.6.3-gompi-2020a
6+
CGAL/4.14.3-gompi-2020a-Python-3.x.y OpenBLAS/0.3.9-GCC-x.y.z
7+
CMake/3.16.4-GCCcore-x.y.z OpenFOAM/v2006-foss-2020a
8+
9+
[removed most of the output here for clarity]
10+
11+
Where:
12+
L: Module is loaded
13+
Aliases: Aliases exist: foo/1.2.3 (1.2) means that "module load foo/1.2"
14+
will load foo/1.2.3
15+
D: Default Module
16+
17+
Use "module spider" to find all possible modules and extensions.
18+
Use "module keyword key1 key2 ..." to search for all possible modules matching
19+
any of the "keys".
20+
```
21+
{: .output}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
```
2+
No Modulefiles Currently Loaded.
3+
```
4+
{: .output}

0 commit comments

Comments
 (0)