You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lessons/atpesc-instructions.md
+21-19Lines changed: 21 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,19 @@
1
1
2
2
# Instructions for Numerical Package Hands-on
3
3
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
+
4
6
## Basic Instructions
5
7
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.
7
9
8
-
-login to cooley
10
+
-Login to Cooley
9
11
```
10
12
ssh -C -X -Y username@cooley.alcf.anl.gov
11
13
```
12
14
-`-C` means to use compression
13
15
-`-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)
-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.
24
26
```
25
27
resoft
26
28
```
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...
28
30
```
29
-
qsub -I -n 3 -t 720 -A ATPESC2017
31
+
qsub -I -n 2 -t 720 -A ATPESC2017
30
32
```
31
33
- **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
33
35
`cc122`.
34
36
- The allocation should remain _reserved_ for the whole day. However,
35
37
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
47
49
and use a variety of visualization tools.
48
50
49
51
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
51
53
our staff are prepared to support. In addition, where necessary, the hands-on
52
54
leader(s) will demonstrate the use of some tools and learners can follow
53
55
along at those points.
@@ -67,15 +69,15 @@ exercises.
67
69
paraview, VisIt and glvis.
68
70
69
71
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:
74
76
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.
79
81
80
82
Mac and Linux users are welcome download and run this script to
81
83
setup a VNC connection. Doing so will permit quick use of tools
@@ -106,16 +108,16 @@ Now, try running the script
106
108
```
107
109
108
110
### 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
110
112
by simply logging out of the interactive allocation.
111
113
112
114
### 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,
114
116
```
115
117
krdc vnc://localhost:22590
116
118
```
117
119
- 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
119
121
to simply find all ssh logins to cooley and kill them
0 commit comments