Hello World Example

  1. Compile the Hello MPI example from BG/P Compilation and Execution section.

  2. Assume that the binary name is hello and it needs no arguments to run.

  3. Create hello.cmd file to describe the BG/P job:

   1 #!/bin/sh
   2 
   3 # @ job_name = hello
   4 # @ job_type = bluegene
   5 # @ requirements = (Machine == "$(host)")
   6 # @ error = $(job_name)_$(jobid).err
   7 # @ output = $(job_name)_$(jobid).out
   8 # @ environment = COPY_ALL;
   9 
  10 # @ notification = always
  11 # @ notify_user = silviu@info.uvt.ro
  12 
  13 # @ class = medium
  14 # @ bg_size = 64
  15 # @ queue
  16 
  17 mpirun -cwd /GPFS/users/staff/panica/bgp/loadl/hello -mode VN -exe /GPFS/users/staff/panica/bgp/loadl/hello/hello
  1. Submit the job to LL:

llsubmit hello.cmd
  1. Query job status:

llq JOB_ID
  1. When job is finished, check the output:

cat hello_*.out

BlueGene/Users/BGP-HelloExample (last edited 2013-10-08 10:06:39 by SilviuPanica)