Skip to content

Commit 0d13c33

Browse files
committed
2 parents 37727d0 + b33716b commit 0d13c33

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

lessons/atpesc-instructions.md

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11

22
# Instructions for Numerical Package Hands-on
33

4+
ATPESC participants will work in groups of 2 for hands-on exercises. Forming groups of 2 helps us to cut in half the number of IT issues that may arise during hands-on exercises. Moreover, [pair programming](https://en.wikipedia.org/wiki/Pair_programming) (the practice of having two people work together on one machine, each taking turns between typing and commenting) results in real-time code review, which [research has shown](http://www.sciencedirect.com/science/article/pii/S0950584909000123) results in higher productivity. If you are not using an OSX or Linux laptop, it would be best to try to pair with someone who is.
5+
46
## Basic Instructions
57

6-
Hands-on exercises are primarily run on cooley cluster at ALCF. Please do the following initial setup
8+
Hands-on exercises are primarily run on the [Cooley](https://www.alcf.anl.gov/user-guides/cooley) cluster at ALCF. Please do the following initial setup.
79

8-
- login to cooley
10+
- Login to Cooley
911
```
1012
ssh -C -X -Y username@cooley.alcf.anl.gov
1113
```
1214
- `-C` means to use compression
1315
- `-X` means to forward X11, `-Y` means _trusted_ X11 forwarding
14-
- setup software environment on cooley by adding the following to _~/.soft.cooley_ (preferably before `@default` line)
16+
- Setup software environment on Cooley by adding the following to _~/.soft.cooley_ (preferably before `@default` line)
1517
```
1618
+mvapich2
1719
+gcc-4.8.1
@@ -20,16 +22,16 @@ PATH+=/projects/ATPESC2017/NumericalPackages/spack/bin
2022
MPIEXEC_OMPI=/projects/ATPESC2017/NumericalPackages/spack/opt/spack/linux-rhel6-x86_64/gcc-4.8.1/openmpi-2.1.1-5b4k4f3vzgwz5qmektcqja2av4c4bjrg/bin/mpiexec
2123
MPIEXEC=/soft/libraries/mpi/mvapich2/gcc/bin/mpiexec
2224
```
23-
- run the following command to make the above change to _~/.soft.cooley_ effective
25+
- Run the following command to make the above change to _~/.soft.cooley_ effective.
2426
```
2527
resoft
2628
```
27-
- obtain 3 compute nodes in _interactive_ (`-I`) mode to run the hands on exercises by running the following `qsub` command...
29+
- Obtain 2 compute nodes in _interactive_ (`-I`) mode to run the hands on exercises by running the following `qsub` command...
2830
```
29-
qsub -I -n 3 -t 720 -A ATPESC2017
31+
qsub -I -n 2 -t 720 -A ATPESC2017
3032
```
3133
- **Note**: Once the allocation has started, you will be logged into
32-
the reserved nodes and see a new prompt with a differnt hostname such as
34+
the reserved nodes and see a new prompt with a different hostname such as
3335
`cc122`.
3436
- The allocation should remain _reserved_ for the whole day. However,
3537
you can delete it simply by logging out of the interactive shell it put you in.
@@ -47,7 +49,7 @@ Some of the hands-on exercises have optional visualization instructions
4749
and use a variety of visualization tools.
4850

4951
Getting a room of more than 70 people with different laptops working with
50-
remote visualization from cooley is not something either our tight agenda or
52+
remote visualization from Cooley is not something either our tight agenda or
5153
our staff are prepared to support. In addition, where necessary, the hands-on
5254
leader(s) will demonstrate the use of some tools and learners can follow
5355
along at those points.
@@ -67,15 +69,15 @@ exercises.
6769
paraview, VisIt and glvis.
6870

6971
We have a devloped a script (to be run on your laptop) that can help with
70-
setting up a VNC connection to cooley. It can work on MacOS, and with some
71-
Linux VNC clients (vinagre, vncviewer). However the script is fragile and
72-
might not work with everyones setup - hence this is optional. This script
73-
will do several things
72+
setting up a VNC connection to Cooley. It can work on MacOS, and with some
73+
Linux VNC clients (vinagre, vncviewer). However, the script is fragile and
74+
might not work with everyone's setup - hence this is optional. This script
75+
will do several things:
7476

75-
- Logs you into cooley once with your token
76-
- Sets up SSH Control Master so you only have to log into cooley with your token once for the whole day and password-less will work thereafter
77-
- Reserves 3 nodes for 12h on cooley.
78-
- Sets up a VNC connection to those nodes
77+
- Log you into cooley once with your token.
78+
- Set up SSH Control Master so you have to log into Cooley with your token only once for the whole day and password-less will work thereafter.
79+
- Reserve 3 nodes for 12h on Cooley.
80+
- Set up a VNC connection to those nodes.
7981

8082
Mac and Linux users are welcome download and run this script to
8183
setup a VNC connection. Doing so will permit quick use of tools
@@ -106,16 +108,16 @@ Now, try running the script
106108
```
107109

108110
### Notes
109-
- If allocating nodes via this script - please deallocate nodes that you might have previously allocated
111+
- If allocating nodes via this script, please deallocate nodes that you might have previously allocated
110112
by simply logging out of the interactive allocation.
111113

112114
### Troubleshooting
113-
- If you have a different preferred Linux VNC client - you should be able to use it to connect to the VNC connection that is already setup by this script. For example,
115+
- If you have a different preferred Linux VNC client, you should be able to use it to connect to the VNC connection that is already setup by this script. For example,
114116
```
115117
krdc vnc://localhost:22590
116118
```
117119
- When rerunning the script - if the ssh command to setup VNC tunnel fails - you
118-
might have to kill the _ssh control master_ process and restart again. Its easiest
120+
might have to kill the _ssh control master_ process and restart again. It's easiest
119121
to simply find all ssh logins to cooley and kill them
120122
```
121123
$ ps -ef | grep cooley

0 commit comments

Comments
 (0)