Changeset 26 for trunk/ll_drmaa/session.c
- Timestamp:
- 11/11/12 15:06:16 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ll_drmaa/session.c
r20 r26 132 132 LL_job job_info; 133 133 134 char *monitor_program = LL_DRMAA_BIN_DIR"/ monitor";134 char *monitor_program = LL_DRMAA_BIN_DIR"/lldrmaa_monitor"; 135 135 136 136 TRY … … 147 147 148 148 connection_lock = fsd_mutex_lock( &self->drm_connection_mutex ); 149 status = llsubmit(cmd_path, monitor_program, llself->unix_socket_name, &job_info, LL_JOB_VERSION); 149 if (self->wait_thread_run_flag) 150 { 151 fsd_log_info(("llsubmit(%s, %s, %s, %p, %d)",cmd_path, monitor_program, llself->unix_socket_name, (void*)&job_info, LL_JOB_VERSION)); 152 status = llsubmit(cmd_path, monitor_program, llself->unix_socket_name, &job_info, LL_JOB_VERSION); 153 } 154 else 155 { 156 fsd_log_info(("llsubmit(%s, NULL, NULL, %p, %d)",cmd_path, (void*)&job_info, LL_JOB_VERSION)); 157 status = llsubmit(cmd_path, NULL, NULL, &job_info, LL_JOB_VERSION); 158 } 150 159 connection_lock = fsd_mutex_unlock( &self->drm_connection_mutex ); 151 160 152 if( remove(cmd_path) == -1)161 if(getenv("LLDRMAA_KEEP_CMD") == NULL && remove(cmd_path) == -1) 153 162 fsd_log_warning(("Can't delete cmd file: %s", cmd_path)); 154 163 … … 161 170 } 162 171 else /* 0 */ 172 { 163 173 fsd_log_debug(("llsubmit: %s",lldrmaa_err_submit(status))); 174 } 164 175 165 176 if( start != end ) … … 170 181 { 171 182 job_ids[i] = fsd_asprintf("%s.%d.%d", job_info.step_list[i]->id.from_host, job_info.step_list[i]->id.cluster, job_info.step_list[i]->id.proc); 172 183 fsd_log_info((" new array job id: %s", job_ids[i])); 173 184 job = lldrmaa_job_new( fsd_strdup(job_ids[i]) ); 174 185 job->session = self; … … 185 196 job_ids[0] = fsd_asprintf( "%s.%d.0", job_info.step_list[0]->id.from_host, job_info.step_list[0]->id.cluster); 186 197 198 fsd_log_info((" new job id: %s", job_ids[0])); 187 199 job = lldrmaa_job_new( fsd_strdup(job_ids[0]) ); 188 200 job->session = self; … … 247 259 } 248 260 249 if ( !self->wait_thread_started )250 fsd_exc_raise_msg(FSD_ERRNO_INTERNAL_ERROR, "DRMAA for LL requires that wait thread is enable. Don't disable it in configuration file!" );251 261 } 252 262
Note: See TracChangeset
for help on using the changeset viewer.