interacting with blue waters · interacting with blue waters april 16, 2020 maxim belkin education...

34
Interacting with Blue Waters April 16, 2020 Maxim Belkin Education and Training Coordinator [email protected]

Upload: others

Post on 02-Oct-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Interacting with Blue Waters

April 16, 2020

Maxim Belkin Education and Training Coordinator [email protected]

Blue Waters Training April 16, 2020

Agenda

1. Connecting to Blue Waters

2. Moving data to/from Blue Waters

3. Running applications on Blue Waters

2Interacting with Blue Waters ▹ Agenda

Blue Waters Training April 16, 2020

Connecting to Blue Waters

3Interacting with Blue Waters ▹ Connecting to Blue Waters

Blue Waters Training April 16, 2020

Connecting to Blue Waters

4

Terminal* SSH Client

Required tools

PORTAL ▸ USING BLUE WATERS ▸ Getting Started

Interacting with Blue Waters ▹ Connecting to Blue Waters

Blue Waters Training April 16, 2020

Connecting to Blue Waters

5

ssh [email protected]

Enter your NCSA password2

Confirm with NCSA DUO3

PORTAL ▸ USING BLUE WATERS ▸ Getting Started

Interacting with Blue Waters ▹ Connecting to Blue Waters

Blue Waters Training April 16, 2020

Connecting to Blue Waters

6

Let's try it out!Hands-on practice

Interacting with Blue Waters ▹ Connecting to Blue Waters

Blue Waters Training April 16, 2020 7

Questions?

The end of "Connecting to Blue Waters" section

Next up "Moving data to/from Blue Waters"

Interacting with Blue Waters ▹ Connecting to Blue Waters

Blue Waters Training April 16, 2020

Moving data to/from Blue Waters

8Interacting with Blue Waters ▹ Moving data to/from Blue Waters

Blue Waters Training April 16, 2020

Moving data to/from Blue Waters

9

Globus (https://www.globus.org)

We recommend using Globus!

PORTAL ▸ USING BLUE WATERS ▸ User Guide ▸ Data Transfer

Interacting with Blue Waters ▹ Moving data to/from Blue Waters

Login nodes

IE nodes

Import-Export nodes

Blue Waters supports data transfers via:

scp, rsync, wget, curl, git (git clone)●

Blue Waters Training April 16, 2020

Data transfer with Globus

10

your computer

Globus storage

endpoint

Globus storage

endpointBlue Waters

(1/3) create (2/3) connect to

(3/3) initiate transfer

Interacting with Blue Waters ▹ Moving data to/from Blue Waters

Blue Waters Training April 16, 2020

Creating personal Globus storage endpoint

11

(1/3)

Blue Waters Training April 16, 2020

Creating personal Globus storage endpoint

12

Create a Globus ID atglobusid.org/create

STEP 1

You can skip this step if you have either Google or ORCiD

accounts and plan on using one of them

Interacting with Blue Waters ▹ Moving data to/from Blue Waters

1 / 6

Blue Waters Training April 16, 2020

Creating personal Globus storage endpoint

13

Log in toapp.globus.org

STEP 2

Interacting with Blue Waters ▹ Moving data to/from Blue Waters

2 / 6

Blue Waters Training April 16, 2020

Creating personal Globus storage endpoint

14

app.globus.org/endpoints

STEP 3 Navigate to ENDPOINTS

Click on Create a personal endpoint

app.globus.org/file-manager/gcp

Interacting with Blue Waters ▹ Moving data to/from Blue Waters

3 / 6

Blue Waters Training April 16, 2020

Creating personal Globus storage endpoint

15

Specify endpoint nameSTEP 4

Click "Generate Setup Key"

Be sure to copy/save generated Setup Key

Interacting with Blue Waters ▹ Moving data to/from Blue Waters

4 / 6

STEP 5

https://www.globus.org/globus-connect-personal

Install Globus Connect Personal

5 / 6

Blue Waters Training April 16, 2020

Creating personal Globus storage endpoint

16

Launch Globus Connect Personal...STEP 6

...enter the Setup Key from STEP 4

🎉

press "Ok"

Interacting with Blue Waters ▹ Moving data to/from Blue Waters

6 / 6

Blue Waters Training April 16, 2020

Connecting to Blue Waters Globus storage endpoint

17

(2/3)

Blue Waters Training April 16, 2020

Connecting to Blue Waters Globus storage endpoint

18

Navigate to app.globus.org

STEP 1 Search for ncsa#BlueWatersSTEP 2

Click on ncsa#BlueWaters

Click

STEP 3

Continue

Interacting with Blue Waters ▹ Moving data to/from Blue Waters

1 / 62 / 63 / 6

Click on the Collection field

You will be asked to authenticate to access the

endpoint.

to proceed

Blue Waters Training April 16, 2020

Connecting to Blue Waters Globus storage endpoint

19

STEP 4

Your browser should be redirected to https://cilogon.org/...

In the Select an Identity Provider section click on current provider name, type NCSA and click onNational Center for Supercomputing Applications

Click

Interacting with Blue Waters ▹ Moving data to/from Blue Waters

4 / 6

Blue Waters Training April 16, 2020

Connecting to Blue Waters Globus storage endpoint

20

STEP 5 Login with your NCSA Username and Password

When prompted, confirm your identity

with NCSA DUO

STEP 6

Interacting with Blue Waters ▹ Moving data to/from Blue Waters

5 / 66 / 6

Blue Waters Training April 16, 2020

Connecting to Blue Waters Globus storage endpoint

21

🎉

Once the sign in step completes,

Globus opens a FILE MANAGER tab

showing your Blue Waters home

folder. This indicates that you have

successfully connected to the Blue

Waters Globus storage endpoint.

Interacting with Blue Waters ▹ Moving data to/from Blue Waters

Blue Waters Training April 16, 2020

Transferring files between Globus endpoints

22

(3/3)

Blue Waters Training April 16, 2020

Transferring files between Globus endpoints

23

Navigate to app.globus.orgSTEP 1

Interacting with Blue Waters ▹ Moving data to/from Blue Waters

After the last step in Connecting to Blue Waters Globus storage endpoint section, the FILE MANAGER tab should have Blue Waters Globus storage endpoint open.

Click on Transfer or Sync to... icon in the right-hand side toolbarSTEP 2

1 / 72 / 7

Blue Waters Training April 16, 2020

Transferring files between Globus endpoints

24

In the second panel, select the Globus storage endpoint you wish to transfer data to or from. It can be any endpoint, including the one we created in Creating personal Globus storage endpoint section or some other endpoint (on another HPC or data center, etc).

STEP 3

Interacting with Blue Waters ▹ Moving data to/from Blue Waters

3 / 7

Blue Waters Training April 16, 2020

Transferring files between Globus endpoints

25

STEP 5

Interacting with Blue Waters ▹ Moving data to/from Blue Waters

Select the files and folders on the sender you wish to transfer to another endpoint

STEP 4

Navigate to the destination directory in the recipient's panel

Click on Transfer & Sync Options at the bottom of the pageSTEP 6

and choose transfer option you wish to use. We recommend using:

- sync - only transfer new or changed files - preserve source file modification times - verify file integrity after transfer - encrypt transfer

4 / 75 / 76 / 7

Blue Waters Training April 16, 2020

Transferring files between Globus endpoints

26

Click on the Start button in the Sender's panel on the bottom of the page.

STEP 7

Interacting with Blue Waters ▹ Moving data to/from Blue Waters

Globus will initiate data transfer and send you an email when the transfer is complete or if there is a problem.

🎉

7 / 7

Blue Waters Training April 16, 2020 27

Questions?

The end of "Moving data to/from Blue Waters" section

Next up "Running applications on Blue Waters"

Interacting with Blue Waters ▹ Moving data to/from Blue Waters

Blue Waters Training April 16, 2020

Running applications on Blue Waters

28Interacting with Blue Waters ▹ Running applications on Blue Waters

Blue Waters Training April 16, 2020

Running applications on Blue Waters

29Interacting with Blue Waters ▹ Running applications on Blue Waters

PORTAL ▸ USING BLUE WATERS ▸ User Guide ▸ Running Your Jobs

User

ssh

Blue Waters

mpirun -n 20000 ./applicationSo, can we go ahead and... ?

Blue Waters Training April 16, 2020

Running applications on Blue Waters

30Interacting with Blue Waters ▹ Running applications on Blue Waters

PORTAL ▸ USING BLUE WATERS ▸ User Guide ▸ Running Your Jobs

User

ssh qsub aprun

Blue Waters

Login ComputeMOMNodes:

Blue Waters Training April 16, 2020

Special PBS comments must come first in the script

Running applications on Blue Waters

31

To run an application on Blue Waters, we need bundle it into a job script.

#!/bin/bash #PBS -l nodes=2:ppn=32:xe #PBS -l walltime=00:10:00 #PBS -q normal #PBS -N myjob

cd $PBS_O_WORKDIR aprun -n 2 -N 1 -- ./application

PBS: Portable Batch System job scheduler

Job script example

Interacting with Blue Waters ▹ Running applications on Blue Waters

PORTAL ▸ USING BLUE WATERS ▸ User Guide ▸ Running Your Jobs ▸ Batch Jobs - sample scripts

2 XE nodes

10 minutes of walltime

"normal" queue

call it "myjob"

Blue Waters Training April 16, 2020 32

Running applications on Blue Waters

Once we have a job script, we can submit it for execution to a queue with

Interacting with Blue Waters ▹ Running applications on Blue Waters

qsub job_script

returns a job identifier that looks something likeqsub 12312312.bw

Delete: qdel <jobid>

Check status:

Put on hold:

Release a hold:

qhold <jobid>

qrls <jobid>qstat -u $USER

Using this identifier, we can manipulate submitted job:

Blue Waters Training April 16, 2020 33

Running applications on Blue Waters

Interacting with Blue Waters ▹ Running applications on Blue Waters

PORTAL ▸ USING BLUE WATERS ▸ User Guide ▸ Running Your Jobs ▸ Batch Jobs - sample scripts

PORTAL ▸ USING BLUE WATERS ▸ User Guide ▸ Running Your Jobs ▸ Queue, Scheduling and Charging Policies

PORTAL ▸ USING BLUE WATERS ▸ User Guide ▸ Running Your Jobs

PORTAL ▸ USING BLUE WATERS ▸ User Guide ▸ Running Your Jobs ▸ Monitoring Jobs

PORTAL ▸ USING BLUE WATERS ▸ User Guide ▸ Running Your Jobs ▸ Using aprun

Need help / training? [email protected]

Blue Waters Training April 16, 2020 34

Questions?

The end of "Running applications on Blue Waters" section

Interacting with Blue Waters ▹ Moving data to/from Blue Waters

The end of "Interacting with Blue Waters" presentations