Skip to content

add str2GpuJobData #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pythonlsf/lsf.i
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ int fclose(FILE *f);
#include "lsf.h"
#include "lsbatch.h"
#include "lib.table.h"
extern struct gpuJobData* str2GpuJobData(char *str);
%}

%pointer_functions(int, intp)
Expand All @@ -47,6 +48,10 @@ int fclose(FILE *f);
%array_functions(struct shareAcctInfoEnt, shareAcctInfoEntArray)
#ifdef LSF_VERSION_101
%array_functions(struct gpuRusage, gpuRusageArray)
%array_functions(struct gpuJobHostData, gpuJobHostDataArray)
%array_functions(struct gpuTaskData, gpuTaskDataArray)
%array_functions(struct gpuData *, gpuDataArray)
%array_functions(struct migData, migDataArray)
#endif
%array_functions(LS_LONG_INT, LS_LONG_INTArray)
%array_functions(guaranteedResourcePoolEnt, guaranteedResourcePoolEntArray)
Expand Down Expand Up @@ -703,6 +708,9 @@ int get_lsb_errno() {
char * get_lsb_sysmsg() {
return lsb_sysmsg();
}
struct gpuJobData* get_str2GpuJobData(char *str) {
return str2GpuJobData(str);
}

PyObject * get_pids_from_stream(struct jRusage * jrusage) {
struct pidInfo *pidInfo;
Expand Down