XgridDRMAA 0.1.1, With Examples

I silently released XgridDRMAA 0.1 the other day; today I’m releasing XgridDRMAA 0.1.1 and announcing it to the appropriate mailing lists.

You can download it here:

http://code.edbaskerville.com/xgrid_drmaa/XgridDRMAA.dmg

I have now included simple example code in all three supported languages (C, Objective-C, Java). For people working in Mac-only environments, I highly recommend the Objective-C interface. If you want your code to work with, e.g., Sun Grid Engine as well, the Java interface is convenient. If you’re attached to C, go ahead, but the API is a little cumbersome. All three languages use the Objective-C implementation at their core. (In the case of Java, there are actually two levels of wrapping: Java wraps C; C wraps Objective-C; this is so I could re-use Sun’s Java bindings for the Grid Engine.)

The code doesn’t take too much explanation, but here’s a basic outline of what it does:

  1. Obtain an object representing a DRMAA session (Objective-C and Java only).
  2. Open the session.
  3. Create a job template object describing various aspects of the job: in this case, it simply echoes a single number and writes stdout to the user’s desktop on the client machine.
  4. Run a “bulk job”—that is, a job with a parameterized index—with an index running from 1 to 5. The corresponding sub-job simply echoes the parameterized index.
  5. “Synchronize” all five jobs—wait for them all to complete.
  6. Clean up memory (C and Java only).
  7. Close the session and exit.

Development work will be on hold for the next few weeks as I work on GridSweeper and travel around Europe, but please send along feedback for when I return to it in early September! For bug reports, please use the bug database.

One Response to “XgridDRMAA 0.1.1, With Examples”

  1. Andreas Haas Says:

    Congratulations, Ed!

    Have a nice vacation in gooooood old Europe ;-)

Leave a Reply