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
a7768f49
Commit
a7768f49
authored
12 years ago
by
Morris Jette
Browse files
Options
Downloads
Patches
Plain Diff
Move variable definitions to eliminate compiler warning
parent
cd6fb7e5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/salloc/salloc.c
+2
-2
2 additions, 2 deletions
src/salloc/salloc.c
src/srun/allocate.c
+2
-2
2 additions, 2 deletions
src/srun/allocate.c
with
4 additions
and
4 deletions
src/salloc/salloc.c
+
2
−
2
View file @
a7768f49
...
@@ -587,7 +587,6 @@ static void _set_submit_dir_env(void)
...
@@ -587,7 +587,6 @@ static void _set_submit_dir_env(void)
/* Returns 0 on success, -1 on failure */
/* Returns 0 on success, -1 on failure */
static
int
_fill_job_desc_from_opts
(
job_desc_msg_t
*
desc
)
static
int
_fill_job_desc_from_opts
(
job_desc_msg_t
*
desc
)
{
{
int
i
;
#ifdef HAVE_REAL_CRAY
#ifdef HAVE_REAL_CRAY
uint64_t
pagg_id
=
job_getjid
(
getpid
());
uint64_t
pagg_id
=
job_getjid
(
getpid
());
/*
/*
...
@@ -673,7 +672,8 @@ static int _fill_job_desc_from_opts(job_desc_msg_t *desc)
...
@@ -673,7 +672,8 @@ static int _fill_job_desc_from_opts(job_desc_msg_t *desc)
desc
->
priority
=
0
;
desc
->
priority
=
0
;
#ifdef HAVE_BG
#ifdef HAVE_BG
if
(
opt
.
geometry
[
0
]
>
0
)
{
if
(
opt
.
geometry
[
0
]
>
0
)
{
for
(
i
=
0
;
i
<
SYSTEM_DIMENSIONS
;
i
++
)
int
i
;
for
(
i
=
0
;
i
<
SYSTEM_DIMENSIONS
;
i
++
)
desc
->
geometry
[
i
]
=
opt
.
geometry
[
i
];
desc
->
geometry
[
i
]
=
opt
.
geometry
[
i
];
}
}
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
src/srun/allocate.c
+
2
−
2
View file @
a7768f49
...
@@ -546,7 +546,6 @@ job_desc_msg_create_from_opts (void)
...
@@ -546,7 +546,6 @@ job_desc_msg_create_from_opts (void)
{
{
job_desc_msg_t
*
j
=
xmalloc
(
sizeof
(
*
j
));
job_desc_msg_t
*
j
=
xmalloc
(
sizeof
(
*
j
));
hostlist_t
hl
=
NULL
;
hostlist_t
hl
=
NULL
;
int
i
;
slurm_init_job_desc_msg
(
j
);
slurm_init_job_desc_msg
(
j
);
...
@@ -649,7 +648,8 @@ job_desc_msg_create_from_opts (void)
...
@@ -649,7 +648,8 @@ job_desc_msg_create_from_opts (void)
j
->
job_id
=
opt
.
jobid
;
j
->
job_id
=
opt
.
jobid
;
#ifdef HAVE_BG
#ifdef HAVE_BG
if
(
opt
.
geometry
[
0
]
>
0
)
{
if
(
opt
.
geometry
[
0
]
>
0
)
{
for
(
i
=
0
;
i
<
SYSTEM_DIMENSIONS
;
i
++
)
int
i
;
for
(
i
=
0
;
i
<
SYSTEM_DIMENSIONS
;
i
++
)
j
->
geometry
[
i
]
=
opt
.
geometry
[
i
];
j
->
geometry
[
i
]
=
opt
.
geometry
[
i
];
}
}
#endif
#endif
...
...
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