Changeset 42
- Timestamp:
- 09/05/14 10:07:41 (11 years ago)
- Location:
- branches/slurm-drmaa-1.2.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/slurm-drmaa-1.2.0/ChangeLog
r41 r42 1 2014-09-05 E V <eliventer@gmail.com> 2 * slurm_drmaa/session.c: job array of size 1 patch 3 1 4 2014-04-22 Michael Gutteridge <michael.gutteridge@gmail.com> 2 5 * slurm_drmaa/job.c, slurm_drmaa/util.c: cpus-per-task patch -
branches/slurm-drmaa-1.2.0/slurm_drmaa/session.c
r38 r42 106 106 { 107 107 unsigned i; 108 if( start != end ) 109 { 108 if( start != end ) { 110 109 n_jobs = (end - start) / incr + 1; 110 } else { 111 n_jobs = 1; 112 } 111 113 112 fsd_calloc( job_ids, n_jobs+1, char* ); 113 job_desc.array_inx = fsd_asprintf( "%d-%d:%d", start, end, incr ); 114 } 114 fsd_calloc( job_ids, n_jobs+1, char* ); 115 116 if ( start != 0 || end != 0 || incr != 0 ) { 117 job_desc.array_inx = fsd_asprintf( "%d-%d:%d", start, end, incr ); 118 } 115 119 116 120 connection_lock = fsd_mutex_lock( &self->drm_connection_mutex ); … … 125 129 fsd_log_debug(("job %u submitted", submit_response->job_id)); 126 130 127 if( start != end ) 128 { 131 if ( start != 0 || end != 0 || incr != 0 ) { 129 132 if ( SLURM_SUCCESS == slurm_load_job( &job_info, submit_response->job_id, 0) ) 130 133 { … … 145 148 } 146 149 } else { 147 fsd_calloc( job_ids, n_jobs+1, char* );148 149 150 job_ids[0] = fsd_asprintf( "%d", submit_response->job_id); /* .0*/ 150 151
Note: See TracChangeset
for help on using the changeset viewer.