f7c2e0b98d7ed46138d776df2d9257381992821c
[parallel_computing.git] / assignments / archive / submit_command / index.shtml
1 <!--#set var="root_directory" value="../../.." --><!--#include virtual="$root_directory/shared/header.shtml"-->
2
3 <h1>Assignment #2</h1>
4 <p><em>Due Tuesday, October 12, 2010</em></p>
5
6 <h2>Purpose</h2>
7
8 <p>Learn to write and run simple MPI code.</p>
9
10 <p>Note: Please identify all your work.</p>
11
12 <p>Write an MPI code, <code>submit.c</code>, to execute a Linux
13 command on all the nodes of a virtual machine. The command to execute
14 will be extracted from the command line arguments.  For instance,</p>
15
16 <pre>
17 mpiexec -np 4 ./submit rm /tmp/a
18 </pre>
19
20 <p>will remove the file <code>a</code> from the local
21 directory <code>/tmp</code> on the 4 nodes on which the code runs.</p>
22
23 <!--#include virtual="$root_directory/shared/footer.shtml"-->