[DRMAA-WG] some questions on "DRMAA JOB TEMPLATE ATTRIBUTES"
Peter Zhu
jhong_z at yahoo.com
Tue Dec 26 06:36:43 CST 2006
Hi all,
I wrote a small DRMAA C program to test how to
submit a parallel job through SGE 6. The small
program was used for submitting a sge6 script file --
"test_submit.sh" in "/home/group1/test", I did as,
1. fill "drmaa_wd" with "/home/group1/test"
2. fill "drmaa_remote_command" with "test_arg.sh"
The source code piece looked like this,
.......
drmaa_set_attribute (jt, DRMAA_JOB_NAME,
"test_submit", error, DRMAA_ERROR_STRING_BUFFER);
drmaa_set_attribute (jt, DRMAA_WD,
"/home/group1/test", error,
DRMAA_ERROR_STRING_BUFFER);
drmaa_set_attribute (jt, DRMAA_REMOTE_COMMAND,
"test_submit.sh", error, DRMAA_ERROR_STRING_BUFFER);
...........
it did not work, and sge6 gave error information,
"12/26/2006 19:23:04|qmaster|einstein|W|job 43.1
failed on host compute2 general searching requested
shell because: 12/26/2006 21:25:38 [501:10278]:
execvp(test_submit.sh, "test_submit.sh") failed: No
such file or directory"
but after I changed the value of
"DRMAA_REMOTE_COMMAND"
to absolutely full path ---
drmaa_set_attribute (jt, DRMAA_REMOTE_COMMAND,
"/home/group1/test/test_submit.sh", error,
DRMAA_ERROR_STRING_BUFFER);
it worked well.
Another question,
While I write a SGE script file for parallel job,
the script file looks like this,
........
/usr/local/mpich-ifort/bin/mpirun -np $NSLOTS
/home/group1/test/test_arg 4
SGE6 will give $NSLOTS a suitable value while it
submits the job. If I want to do this only through
DRMAA API, how to implement it.
Happy New Year to all members.
Peter Zhu
Dec 26, 2006
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the drmaa-wg
mailing list