[SOLVED] ParallelComputing Assignment 3-Hello!

35.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon activity-hello-usgprr.zip (69.9 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
Rate this product

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 

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. Make sure you turn that hello answer file in.

  • activity-hello-usgprr.zip