Pascal's Weblog
The Grid...



Archives
« November 2009
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
     
       
Today
Click me to subscribe
Search

Links
 

Today's Page Hits: 25

« Globus client certif... | Main | SC'06 »
Friday Nov 10, 2006
DRMAA
I initially gave examples on how to distribute an application over the Grid using the Sun Grid Engine commands (e.g., qsub). An other option is to use the Distributed Resource Management Application API (DRMAA) which provide options to submit jobs directly from within a program. A sample code looks like in Java:


         // Submit jobs to run 
         for (int i = 0; i < 50; i++) {
           System.out.println("Creating Remote Command: " + i);
           jt[i] = session.createJobTemplate();
           jt[i].setRemoteCommand(exec);
           ids[i] = session.runJob(jt[i]);
         }

A full example is provided on the Developer Network site by Fay Salwen, one of our Grid experts.
Posted at 09:46AM Nov 10, 2006 by Pascal Ledru in Grid Computing  |  Comments[0]

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed