Changes between Version 54 and Version 55 of DRM4G/Tutorial
- Timestamp:
- Jun 27, 2016 6:53:26 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DRM4G/Tutorial
v54 v55 96 96 = My first job = 97 97 98 99 {{{100 #!sh101 [user@mycomputer~]$ echo "EXECUTABLE=/bin/date" > date.job102 }}}103 104 {{{105 #!sh106 [user@mycomputer~]$ drm4g job submit date.job107 ID: 0108 }}}98 1. Create a job template : 99 {{{ 100 #!sh 101 [user@mycomputer~]$ echo "EXECUTABLE=/bin/date" > date.job 102 }}} 103 1. Submit the job : 104 {{{ 105 #!sh 106 [user@mycomputer~]$ drm4g job submit date.job 107 ID: 0 108 }}} 109 109 1. Check the evolution of the job : 110 {{{ 111 #!sh 112 [user@mycomputer~]$ drm4g job list 0 113 JID DM EM START END EXEC XFER EXIT NAME HOST 114 0 pend ---- 19:39:09 --:--:-- 0:00:00 0:00:00 -- date.job -- 115 }}} 116 110 {{{#!sh 111 [user@mycomputer~]$ drm4g job list 0 112 JID DM EM START END EXEC XFER EXIT NAME HOST 113 0 pend ---- 19:39:09 --:--:-- 0:00:00 0:00:00 -- date.job -- 114 }}} 117 115 If you execute successive `drm4g job list 0`, you will see the different states of this job: 118 {{{ 119 0 prol ---- 19:39:09 --:--:-- 0:00:00 0:00:00 -- date.job -- 120 0 wrap pend 19:39:09 --:--:-- 0:00:00 0:00:00 -- date.job localhost/fork 121 0 wrap actv 19:39:09 --:--:-- 0:00:05 0:00:00 -- date.job localhost/fork 122 0 epil ---- 19:39:09 --:--:-- 0:00:10 0:00:00 -- date.job localhost/fork 123 0 done ---- 19:39:09 19:39:27 0:00:10 0:00:01 0 date.job localhost/fork 124 }}} 125 * `pend`: The job is waiting for a resource to run on. 116 * `pend`: The job is pending for a host to run on. 126 117 {{{ 127 118 JID DM EM START END EXEC XFER EXIT NAME HOST 128 119 0 pend ---- 19:39:09 --:--:-- 0:00:00 0:00:00 -- date.job -- 129 120 }}} 130 * `prol` :The remote system is being prepared for execution. 131 * `wrap pend` :The job has been successfully submitted to the computing resource and it is waiting. 132 * `wrap actv`:The job is being executed by the computing resource. 133 * `epil`:The job is finalizing. 134 * `done`:The job has finished. 135 1. Results are standard output (stdout) and standard error (stderr), both files will be in the same directory of job template: 136 {{{ 137 #!sh 138 [user@mycomputer~]$ cat stdout.0 139 Mon Jul 28 12:29:43 CEST 2014 140 141 [user@mycomputer~]$ cat stderr.0 142 143 }}} 121 * `prol`: The frontend is being prepared for execution. 122 {{{ 123 JID DM EM START END EXEC XFER EXIT NAME HOST 124 0 prol ---- 19:39:09 --:--:-- 0:00:00 0:00:00 -- date.job -- 125 }}} 126 * `wrap pend`: The job has been successfully submitted to the frontend and it is pending in the queue 127 {{{ 128 JID DM EM START END EXEC XFER EXIT NAME HOST 129 0 wrap pend 19:39:09 --:--:-- 0:00:00 0:00:00 -- date.job localhost/fork 130 }}} 131 * `wrap actv`:The job is running in the remote queue. 132 {{{ 133 JID DM EM START END EXEC XFER EXIT NAME HOST 134 0 wrap actv 19:39:09 --:--:-- 0:00:05 0:00:00 -- date.job localhost/fork 135 }}} 136 * `epil`:The job is done/complete in queue and it's fetching the results. 137 {{{ 138 JID DM EM START END EXEC XFER EXIT NAME HOST 139 0 epil ---- 19:39:09 --:--:-- 0:00:10 0:00:00 -- date.job localhost/fork 140 }}} 141 * `done`:The job is done. 142 {{{ 143 JID DM EM START END EXEC XFER EXIT NAME HOST 144 0 done ---- 19:39:09 19:39:27 0:00:10 0:00:01 0 date.job localhost/fork 145 }}} 146 1. In this job template, the results from the job are standard output (stdout) and standard error (stderr), both files will be in the same directory of the sob submision: 147 {{{#!sh 148 [user@mycomputer~]$ cat stdout.0 149 Mon Jul 28 12:29:43 CEST 2014 150 151 [user@mycomputer~]$ cat stderr.0 152 }}} 144 153 145 154 = How to configure a TORQUE/PBS resource =