Skip to content
Snippets Groups Projects
Commit a4b9da54 authored by Jim Garlick's avatar Jim Garlick
Browse files

Fixed a silly typo.

parent b7f7b746
No related branches found
No related tags found
No related merge requests found
...@@ -198,7 +198,7 @@ _init_elan_capability(ELAN_CAPABILITY *cap, int nprocs, int nnodes, ...@@ -198,7 +198,7 @@ _init_elan_capability(ELAN_CAPABILITY *cap, int nprocs, int nnodes,
/* UserKey is 128 bits of randomness which should be kept private */ /* UserKey is 128 bits of randomness which should be kept private */
for (i = 0; i < 4; i++) for (i = 0; i < 4; i++)
key->Values[i] = lrand48(); cap->UserKey.Values[i] = lrand48();
/* set up hardware context range */ /* set up hardware context range */
cap->LowContext = _generate_hwcontext(procs_per_node); cap->LowContext = _generate_hwcontext(procs_per_node);
...@@ -241,7 +241,8 @@ _init_elan_capability(ELAN_CAPABILITY *cap, int nprocs, int nnodes, ...@@ -241,7 +241,8 @@ _init_elan_capability(ELAN_CAPABILITY *cap, int nprocs, int nnodes,
/* /*
* Create all the QsNet related information needed to set up a QsNet parallel * Create all the QsNet related information needed to set up a QsNet parallel
* program and store it in the qsw_jobinfo struct. * program and store it in the qsw_jobinfo struct. This would be called once
* centrally and distributed to each node that is running the job.
*/ */
int int
qsw_create_jobinfo(struct qsw_jobinfo **jp, int nprocs, bitstr_t *nodeset, qsw_create_jobinfo(struct qsw_jobinfo **jp, int nprocs, bitstr_t *nodeset,
...@@ -253,9 +254,8 @@ qsw_create_jobinfo(struct qsw_jobinfo **jp, int nprocs, bitstr_t *nodeset, ...@@ -253,9 +254,8 @@ qsw_create_jobinfo(struct qsw_jobinfo **jp, int nprocs, bitstr_t *nodeset,
assert(jp != NULL); assert(jp != NULL);
/* sanity check on args */ /* sanity check on args */
if (nprocs <= 0 || nprocs > ELAN_MAX_VPS if (nprocs <= 0 || nprocs > ELAN_MAX_VPS || nnodes == 0
|| nnodes == 0 || (nprocs % nnodes) != 0) {
|| nprocs % nnodes != 0) {
errno = EINVAL; errno = EINVAL;
return -1; return -1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment