SCD News: You are hereGo to UCAR home pageGo to NCAR home pageGo to SCD home pageSend email to Digital Information GroupGo to SCD internal pagesSearch SCD siteGo to SCD News table of contentsGo to UCAR home pageGo to NCAR home page
Go to SCD News table of contentsGo to photo of the weekGo to features archiveGo to news archiveGo to tips archiveGo to updates archive

Go to UCAR home pageGo to NCAR home pageGo to SCD home pageGo to SCD News home pageGo to SCD internal pagesGo to SCD News home pageGo to Features archiveGo to News archiveGo to Tips archiveGo to Updates archiveSCD News > Tips and techniques

Tips for using blackforest more effectively

Maximize productivity after your code has been converted

blackforest

The IBM SP RS/6000, blackforest

How to control resubmission of your batch job

  1. In your run directory, create a file called "resubmit" that contains a number representing the number of times you want to resubmit your batch queue script.

  2. In your batch queuing script, at the point where you want to resubmit the batch queue script, include the following:
     set RESUBMIT = 'FALSE'
    if ( -e ./resubmit ) then
       @ N = `cat ./resubmit`
       echo "file resubmit exists and requests $N more job submissions"
       if ( $N > 0 ) then
         set RESUBMIT = 'TRUE'
         @ N--
         echo $N >! i./resubmit
       endif
     endif
     
     if ( $RESUBMIT == 'TRUE' ) then
       echo "Note: resubmitting job"
    
       llsubmit your_batch_queue_script
    
     else
       echo "Note: not resubmitting job"
     endif

How to acquire a high-water memory mark

To acquire a high-water memory mark for runs on blackforest, you can use the C program [name] that is provided in a tar file in the blackforest tools directory /usr/local/tools/summary.tar

To use this tool, link the C program summary.o in with your program and insert

     call start
     call summary

in your Fortran code. It calls getrusage and several other routines.


Use the thread-safe compiler

We recommend that everyone use the thread-safe compiler whether you are using threads or not; that way you'll have access to MPI-2 functions, and will benefit from some internal thread creation when running on multiple CPUs per node.


Useful defaults for MPI jobs

We suggest you include
MP_EAGER_LIMIT=65536
MP_SHARED_MEMORY=yes

with your defaults for MPI jobs.


For more information

Back to contents