Difference between revisions of "Testing and Troubleshooting"

From ZeptoOS
Jump to navigationJump to search
Line 2: Line 2:
 
----
 
----
  
== Job Submission ==
+
== Using Testcodes ==
One the files installations have been done and the profiles defined by creating symbolic links to the images in the top-level directory, it is time to submit a test job. Write a test program like:
+
Once the files installations have been done and the profiles defined by creating symbolic links to the images in the top-level directory, it is time to submit a test job. Use the test program provided with the distribution. From the top level directory:
 
 
 
<pre>
 
<pre>
#include <stdio.h>
+
$ cd comm/testcodes
#include "mpi.h"
 
 
 
int main(int argc, char* argv[])
 
{
 
    int rank, namelen;
 
    char processor_name[MPI_MAX_PROCESSOR_NAME];
 
 
 
    MPI_Init(&argc, &argv);
 
 
 
    MPI_Comm_rank(MPI_COMM_WORLD, &rank);
 
    MPI_Get_processor_name(processor_name, &namelen);
 
    printf("Process %d on %s\n", rank, processor_name);
 
#if 0
 
    for (;;)
 
        ;
 
#endif
 
    MPI_Finalize();
 
    return 0;
 
}
 
 
</pre>
 
</pre>
  
Line 31: Line 11:
  
 
The program can be compiled on the login node using:
 
The program can be compiled on the login node using:
<pre>$ /path/to/install/bin/mpic -o hello_world hello_world.c</pre>
+
<pre>$ /path/to/install/bin/mpicc -o hello_world hello_world.c</pre>
  
 
=== Submitting Job ===
 
=== Submitting Job ===

Revision as of 13:56, 2 April 2009

Installation Top The ZeptoOS V2.0 Kernel


Using Testcodes

Once the files installations have been done and the profiles defined by creating symbolic links to the images in the top-level directory, it is time to submit a test job. Use the test program provided with the distribution. From the top level directory:

$ cd comm/testcodes

Compiling

The program can be compiled on the login node using:

$ /path/to/install/bin/mpicc -o hello_world hello_world.c

Submitting Job

(For ANL Users) The job needs to be submitted using the cobalt resource manager. For the hello_world program use the following command:

cqsub -n <number-of-processes> -t <time> -k <profile-name> ./hello_world



Installation Top The ZeptoOS V2.0 Kernel