Running programs on Heracles
Heracles Cluster Machine has 16 nodes (node 2 to node 17) plus one
master node (node 1) plus one GPU node (Node18 has four GPUs). User
programs
MUST NOT be run on master node but on compute nodes instead.
Before you run your programs, please be sure to check the cluster
status to
select a non-busy compute node. Running
programs on busy compute nodes may result in incorrect performance benchmark.
ssh command
- To run programs on compute nodes and node18, use the ssh command.
- You can run C, C++, openMP, cuda and Fortran programs on Heracles through ssh command.
- ssh will explicitly
define on which node the program will run.
Syntax:
ssh node<n> <path> myProgram arg1 arg2
where,
n is the node number (n = 2, 3 … 18)
arg1, arg2, arg3…: program
arguments
Example:
ssh node5 /home/john/csc5551/cge 8 1
This command executes the cge program on node 5, where arg1 is 8 and
arg2 is 1.
Running C/C++/openMP and Fortran programs on Heracles
You can run C/C++/openMP and Fortran programs only on nodes 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 and 16.
Running Cuda programs on Heracles
Cuda programs can only be executed on node 18, because it is connected with four GPUs.
You can configure your program to run in any available GPU on node18.
Cuda programs need GPU in order to execute.