Create a gist now

Instantly share code, notes, and snippets.

@Atlas7 /qsub-option-1.md Secret
Last active Aug 10, 2017

What would you like to do?
How to submit a job to Colfax HPC Cluster Nodes - Option 1 (direct command)

Intel Colfax Cluster - Notes - Index Page


Example 1 - run generic command

Say we would like to submit the command lscpu to run on a HPC cluster node, we can do it like this:

[u4443@c001 lec-01]$ echo lscpu | qsub
21084.c001

Job ID 20184 is now submitted to run on the cluster. Do a cat STDIN.o21084 (in the directory where we run the command) to see output:

[u4443@c001 lec-01]$ cat STDIN.o21084

########################################################################
# Colfax Cluster - https://colfaxresearch.com/
#      Date:           Sun Aug  6 03:04:56 PDT 2017
#    Job ID:           21084.c001
#      User:           u4443
# Resources:           neednodes=1,nodes=1,walltime=24:00:00
########################################################################

Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                256
On-line CPU(s) list:   0-255
Thread(s) per core:    4
Core(s) per socket:    64
Socket(s):             1
NUMA node(s):          2
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 87
Model name:            Intel(R) Xeon Phi(TM) CPU 7210 @ 1.30GHz
Stepping:              1
CPU MHz:               1221.390
BogoMIPS:              2594.02
L1d cache:             32K
L1i cache:             32K
L2 cache:              1024K
NUMA node0 CPU(s):     0-255
NUMA node1 CPU(s):

########################################################################
# Colfax Cluster
# End of output for job 21084.c001
# Date: Sun Aug  6 03:04:57 PDT 2017
########################################################################

[u4443@c001 lec-01]$

Note that Intel(R) Xeon Phi(TM) CPU 7210 is a Knights Landing (knl) processor.

To see error, simply do cat STDIN.e21084.

Example 2 - run a user directory binary

To run a user specific binary (e.g. a compiled C++ code hello), process is similar. Just make sure we specify the full path to the binary:

[u4443@c001]$ echo /path/to/binary/hello | qsub


Intel Colfax Cluster - Notes - Index Page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment