22
Introduction to Using the HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing 17 March 2015 www.cac.cornell.edu 1 hd-hni.cac.cornell.edu http://www.cac.cornell.edu/wiki/index.php?title=HD_Human_Neuroscience_Institute_(HD-HNI)_Computing

Introduction to Using the HD Human Neuroscience Institute ...Introduction to Using the HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing 17 March

  • Upload
    others

  • View
    9

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Introduction to Using the HD Human Neuroscience Institute ...Introduction to Using the HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing 17 March

Introduction to Using the

HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing

17 March 2015 www.cac.cornell.edu 1

hd-hni.cac.cornell.edu

http://www.cac.cornell.edu/wiki/index.php?title=HD_Human_Neuroscience_Institute_(HD-HNI)_Computing

Page 2: Introduction to Using the HD Human Neuroscience Institute ...Introduction to Using the HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing 17 March

Scheduler

File

d

compute-1-1

File Server: hd-hni-fs /home

interactive-1-1

Cluster Head Node/Login Node: hd-hni.cac.cornell.edu

interactive-1-1

Page 3: Introduction to Using the HD Human Neuroscience Institute ...Introduction to Using the HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing 17 March

Scheduler

File

compute-1-1

File Server: hd-hni-fs /home (22.5TB)

interactive-1-1

Cluster Head Node/Login Node: hd-hni.cac.cornell.edu

interactive-1-1

hd-hni-interactive-1-1.cac.cornell.edu/Login Node

host=

Page 4: Introduction to Using the HD Human Neuroscience Institute ...Introduction to Using the HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing 17 March

It is for your benefit to always use the scheduler.

Page 5: Introduction to Using the HD Human Neuroscience Institute ...Introduction to Using the HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing 17 March

X11 X11 X11

SSH

ssh –Y [email protected]

Page 6: Introduction to Using the HD Human Neuroscience Institute ...Introduction to Using the HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing 17 March

/

tmp home opt

fs01

netid

$HOME ~netid ~

Page 7: Introduction to Using the HD Human Neuroscience Institute ...Introduction to Using the HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing 17 March

ls cd cat grep find less echo pwd exit rm logout man

mkdir fg bg ssh if for export cut sed awk make xargs

diff touch chmod alias umask head tail top tar mv ln expr

pushd popd source sort sleep pushd popd ps nohup time date

COMMON LINUX COMMANDS

Page 8: Introduction to Using the HD Human Neuroscience Institute ...Introduction to Using the HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing 17 March

Create your job script

Page 9: Introduction to Using the HD Human Neuroscience Institute ...Introduction to Using the HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing 17 March

I’d like you TODO

Dear Scheduler,

Page 10: Introduction to Using the HD Human Neuroscience Institute ...Introduction to Using the HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing 17 March

pwd /home/fs01/netid

vi bin/testjob.sh

mkdir bin

Page 11: Introduction to Using the HD Human Neuroscience Institute ...Introduction to Using the HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing 17 March

gedit eclipse nano emacs vi

sensible programmer

get-it-done do-it-all

did what?

Page 12: Introduction to Using the HD Human Neuroscience Institute ...Introduction to Using the HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing 17 March

Input - Program - Output

PBS DIRECTIVES

Page 13: Introduction to Using the HD Human Neuroscience Institute ...Introduction to Using the HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing 17 March

#!/bin/bash #PBS -l walltime=00:05:00,nodes=1:ppn=4 #PBS -j oe #PBS -N testdefaultqueue #PBS -q default # Turn on echo of shell commands set -x # Because jobs start in the HOME directory, move to submit dir cd $PBS_O_WORKDIR echo 'pwd' echo "PBS_O_WORKDIR is `pwd`" echo "env is `env`" # copy your binary that you want to run and any data files to a local directory on node job is executing on # this example assumes you have a binary file named helloworld.sh in your local bin directory cp $HOME/bin/helloworld.sh $TMPDIR cd $TMPDIR # run the binary file from the local disk on the node the job was placed on ./helloworld.sh >&hello.stdout # Copy output files to your output folder cp -f $TMPDIR/hello.stdout $HOME/output

Page 14: Introduction to Using the HD Human Neuroscience Institute ...Introduction to Using the HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing 17 March

Scheduler

File

compute-1-1

File Server: hd-hni-fs /home

interactive-1-1

Cluster Head Node/Login Node: hd-hni.cac.cornell.edu

interactive-

1dddhost=host=host=ho

st=host=

$TMPDIR

$TMPDIR

/home/fs01/netid/bin 32 Core

256GB RAM

Page 15: Introduction to Using the HD Human Neuroscience Institute ...Introduction to Using the HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing 17 March

pwd /home/fs01/netid

vi bin/testjob.sh qsub bin/testjob.sh

mkdir bin

Page 16: Introduction to Using the HD Human Neuroscience Institute ...Introduction to Using the HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing 17 March

default

Queues

Page 17: Introduction to Using the HD Human Neuroscience Institute ...Introduction to Using the HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing 17 March

eligible

running

blocked

removed

completed

Page 18: Introduction to Using the HD Human Neuroscience Institute ...Introduction to Using the HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing 17 March

input files job file

scheduler

job

job out

output files

Page 19: Introduction to Using the HD Human Neuroscience Institute ...Introduction to Using the HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing 17 March

• qsub • showq • checkjob • canceljob

Page 20: Introduction to Using the HD Human Neuroscience Institute ...Introduction to Using the HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing 17 March

Interactive –I qsub –I jobscript.sh

Page 21: Introduction to Using the HD Human Neuroscience Institute ...Introduction to Using the HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing 17 March

Matlab • R2012b • R2013a: default • module avail >module load matlab/R2012b >matlab

Page 22: Introduction to Using the HD Human Neuroscience Institute ...Introduction to Using the HD Human Neuroscience Institute (hd-hni) Cluster Cornell Center for Advanced Computing 17 March

[email protected] http://www.cac.cornell.edu

Ganglia Monitor: http://hd-hni.cac.cornell.edu/ganglia/