Starting from:

$25

ParallelComputing -activity-hello - Solved

Activity: Hello!

The purpose of this activity is for you to

•    get started back in writing C or C++ code

•    get familiar with running code on mamba

1        Hello on mamba (10 pts)

Question: Write a code that simply prints the name of the current machine. You can obtain that name using function gethostname (check man page for details). Write that code in file hello.cpp. You can test this works by compiling it with make hello.

Question: Run that code on a mamba compute node using ./queue hello.sh from the cluster head node. This will start a PBS job. Once this job has completed, a file hello  answer will be created containing the name of the compute node the command has run on. 

More products