Changeset 29 for trunk/slurm_drmaa/util.c
- Timestamp:
- 10/31/12 14:10:21 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/slurm_drmaa/util.c
r28 r29 94 94 else if (strcasecmp(mail_type_str, "FAIL") == 0) 95 95 rc = MAIL_JOB_FAIL; 96 #if SLURM_VERSION_NUMBER >= SLURM_VERSION_NUM(2,2,0) 96 97 else if (strcasecmp(mail_type_str, "REQUEUE") == 0) 97 98 rc = MAIL_JOB_REQUEUE; 99 #endif 98 100 else if (strcasecmp(mail_type_str, "ALL") == 0) 101 #if SLURM_VERSION_NUMBER >= SLURM_VERSION_NUM(2,2,0) 99 102 rc = MAIL_JOB_BEGIN | MAIL_JOB_END | MAIL_JOB_FAIL | MAIL_JOB_REQUEUE; 100 else 101 rc = 0; /* failure */ 103 #else 104 rc = MAIL_JOB_BEGIN | MAIL_JOB_END | MAIL_JOB_FAIL; 105 #endif 106 else { 107 fsd_log_error(("Unknown mail type: %s", mail_type_str)); 108 } 102 109 103 110 return rc; … … 163 170 fsd_free(job_desc->std_err); 164 171 fsd_free(job_desc->work_dir); 172 fsd_free(job_desc->exc_nodes); 173 #if SLURM_VERSION_NUMBER >= SLURM_VERSION_NUM(2,2,0) 165 174 fsd_free(job_desc->gres); 166 fsd_free(job_desc->exc_nodes); 167 175 #endif 168 176 169 177 fsd_log_return(( "" )); … … 309 317 break; 310 318 case SLURM_NATIVE_GRES: 319 #if SLURM_VERSION_NUMBER >= SLURM_VERSION_NUM(2,2,0) 311 320 fsd_log_debug(("# gres = %s",value)); 312 321 job_desc->gres = fsd_strdup(value); 322 #else 323 fsd_log_error(("GRES not supported in this version of SLURM.")); 324 #endif 313 325 break; 314 326 case SLURM_NATIVE_NO_KILL:
Note: See TracChangeset
for help on using the changeset viewer.