Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
a4b9da54
Commit
a4b9da54
authored
22 years ago
by
Jim Garlick
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a silly typo.
parent
b7f7b746
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/qsw.c
+5
-5
5 additions, 5 deletions
src/common/qsw.c
with
5 additions
and
5 deletions
src/common/qsw.c
+
5
−
5
View file @
a4b9da54
...
@@ -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
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment