-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from dgruber/loveshack
Added support for Son of Grid Engine drmaa.h
- Loading branch information
Showing
4 changed files
with
31 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
Copyright 2012, 2013, 2014, 2015, 2016 Daniel Gruber, [email protected] | ||
Copyright 2012, 2013, 2014, 2015, 2016, 2020 Daniel Gruber, [email protected] | ||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are | ||
|
@@ -112,6 +112,15 @@ static int _drmaa_get_num_attr_names(drmaa_attr_names_t* names, int *size) { | |
return drmaa_get_num_attr_names(names, size); | ||
#endif | ||
} | ||
static int _drmaa_run_bulk_jobs(drmaa_job_ids_t **jobids, const drmaa_job_template_t *jt, int start, int end, int incr, char *diag, size_t diag_len) { | ||
#if defined(SOG) | ||
return drmaa_run_bulk_jobs(jobids, jt, (unsigned) start, (unsigned) end, incr, diag, diag_len); | ||
#else | ||
return drmaa_run_bulk_jobs(jobids, jt, start, end, incr, diag, diag_len); | ||
#endif | ||
} | ||
*/ | ||
import "C" | ||
|
||
|
@@ -663,7 +672,7 @@ func (s *Session) RunBulkJobs(jt *JobTemplate, start, end, incr int) ([]string, | |
diag := C.makeString(stringSize) | ||
defer C.free(unsafe.Pointer(diag)) | ||
|
||
errNumber := C.drmaa_run_bulk_jobs(&ids, jt.jt, C.int(start), C.int(end), C.int(incr), | ||
errNumber := C._drmaa_run_bulk_jobs(&ids, jt.jt, C.int(start), C.int(end), C.int(incr), | ||
diag, stringSize) | ||
|
||
if errNumber != C.DRMAA_ERRNO_SUCCESS && diag != nil { | ||
|
This file was deleted.
Oops, something went wrong.