User:Praveer-mathur-9f3d@uni-bonn.de/intro-to-working-on-hpc-clusters

From HPC Wiki
Jump to navigation Jump to search

Short Quiz: Cluster Structure

Which of the following statements are true?

"A typical cluster contains a number of nodes, those contain several CPUs, those contain several cores".

True
False

"In a cluster, each CPU core usually has its own RAM".

True
False

"Computations are normally started by the user on the login node".

True
False

Short Quiz: Getting Help

mass = mass * 2.0
print(mass, age)

Click and submit to see the answer

Which of the following is the correct support address for Bender?

bender@uni-bonn.de
bender@hpc.uni-bonn.de
bender-support@uni-bonn.de
bender-support@hpc.uni-bonn.de

Short Quiz: SSH Directory

(Hard to implement, maybe click and submit to see the answer?)

Short Quiz: File Transfer

You want to copy a directory named myresults, from your home on Bender to your current directory on your PC using an SSH command. Assume you have an SSH preset named bender. What does the command look like? (Hard to implement).

Click and submit to see the answer

Short Quiz: Environment Modules

(Hard to implement, maybe click and submit to see the answer?)

Short Quiz: SLURM Parameters

How many cores will SLURM allocate in each case? Assume that the default number of tasks and CPUs per task are 1, and that there are 32 cores and 4 GPUs per node.

sbatch --nodes=2 --ntasks-per-node=16 quiz1.sh

Click and submit to see the answer

sbatch --ntasks=48 --cpus-per-task=2 quiz2.sh

Click and submit to see the answer

sbatch --gpus=1 quiz3

Click and submit to see the answer

sbatch quiz4.sh

Click and submit to see the answer