-
Notifications
You must be signed in to change notification settings - Fork 51
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
submit/job/jsc: propagate gpu request information #1480
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -174,12 +174,13 @@ static flux_future_t *send_create_event (flux_t *h, struct wreck_job *job) | |
return NULL; | ||
} | ||
if (!(f = flux_rpc_pack (h, topic, nodeid, flags, | ||
"{s:I,s:s,s:i,s:i,s:i,s:i}", | ||
"{s:I,s:s,s:i,s:i,s:i,s:i,s:i}", | ||
"jobid", job->id, | ||
"kvs_path", job->kvs_path, | ||
"ntasks", job->ntasks, | ||
"ncores", job->ncores, | ||
"nnodes", job->nnodes, | ||
"ngpus", job->ngpus, | ||
"walltime", job->walltime))) | ||
return NULL; | ||
return f; | ||
|
@@ -262,12 +263,13 @@ static void job_submit_only (flux_t *h, flux_msg_handler_t *w, | |
} | ||
if (!(job = wreck_job_create ())) | ||
goto error; | ||
if (flux_request_unpack (msg, NULL, "{s:I s:s s?:i s?:i s?:i s?:i}", | ||
if (flux_request_unpack (msg, NULL, "{s:I s:s s?:i s?:i s?:i s?:i s?:i}", | ||
"jobid", &job->id, | ||
"kvs_path", &kvs_path, | ||
"ntasks", &job->ntasks, | ||
"nnodes", &job->nnodes, | ||
"ncores", &job->ncores, | ||
"ngpus", &job->ngpus, | ||
"walltime", &job->walltime) < 0) | ||
goto error; | ||
wreck_job_set_state (job, "submitted"); | ||
|
@@ -395,10 +397,11 @@ static void job_create_cb (flux_t *h, flux_msg_handler_t *w, | |
|
||
if (!(job = wreck_job_create ())) | ||
goto error; | ||
if (flux_request_unpack (msg, &topic, "{s?:i s?:i s?:i s?:i}", | ||
if (flux_request_unpack (msg, &topic, "{s?:i s?:i s?:i s?:i s?:i}", | ||
"ntasks", &job->ntasks, | ||
"nnodes", &job->nnodes, | ||
"ncores", &job->ncores, | ||
"ngpus", &job->ngpus, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Extra There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Heh.. I think this explains weird sched failure I was getting yesterday. I had to ask though. Why There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In the past these request messages only included members that were actually set by the user. If not set they were assumed zero. It may make sense now to have these members of this message be required. |
||
"walltime", &job->walltime) < 0) | ||
goto error; | ||
if (!(cpy = flux_msg_copy (msg, true))) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The extra
s:i
parameter for the"ngpus", job->gpus
pair is missing in theflux_msg_pack()
format here.