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
5fdde860
Commit
5fdde860
authored
13 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
cray - removed useless hostlist creation.
parent
1ed29e62
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/plugins/select/cray/basil_interface.c
+2
-6
2 additions, 6 deletions
src/plugins/select/cray/basil_interface.c
with
2 additions
and
6 deletions
src/plugins/select/cray/basil_interface.c
+
2
−
6
View file @
5fdde860
...
@@ -592,7 +592,6 @@ extern int do_basil_reserve(struct job_record *job_ptr)
...
@@ -592,7 +592,6 @@ extern int do_basil_reserve(struct job_record *job_ptr)
uint32_t
mppmem
=
0
,
node_min_mem
=
0
;
uint32_t
mppmem
=
0
,
node_min_mem
=
0
;
uint32_t
resv_id
;
uint32_t
resv_id
;
int
i
,
first_bit
,
last_bit
;
int
i
,
first_bit
,
last_bit
;
hostlist_t
hl
;
long
rc
;
long
rc
;
char
*
user
,
batch_id
[
16
];
char
*
user
,
batch_id
[
16
];
...
@@ -627,10 +626,6 @@ extern int do_basil_reserve(struct job_record *job_ptr)
...
@@ -627,10 +626,6 @@ extern int do_basil_reserve(struct job_record *job_ptr)
node_min_mem
=
job_ptr
->
details
->
pn_min_memory
;
node_min_mem
=
job_ptr
->
details
->
pn_min_memory
;
}
}
hl
=
hostlist_create
(
""
);
if
(
hl
==
NULL
)
fatal
(
"hostlist_create: malloc error"
);
for
(
i
=
first_bit
;
i
<=
last_bit
;
i
++
)
{
for
(
i
=
first_bit
;
i
<=
last_bit
;
i
++
)
{
struct
node_record
*
node_ptr
=
node_record_table_ptr
+
i
;
struct
node_record
*
node_ptr
=
node_record_table_ptr
+
i
;
uint32_t
basil_node_id
;
uint32_t
basil_node_id
;
...
@@ -642,7 +637,8 @@ extern int do_basil_reserve(struct job_record *job_ptr)
...
@@ -642,7 +637,8 @@ extern int do_basil_reserve(struct job_record *job_ptr)
continue
;
/* bad node */
continue
;
/* bad node */
if
(
sscanf
(
node_ptr
->
name
,
"nid%05u"
,
&
basil_node_id
)
!=
1
)
if
(
sscanf
(
node_ptr
->
name
,
"nid%05u"
,
&
basil_node_id
)
!=
1
)
fatal
(
"can not read basil_node_id from %s"
,
node_ptr
->
name
);
fatal
(
"can not read basil_node_id from %s"
,
node_ptr
->
name
);
if
(
ns_add_node
(
&
ns_head
,
basil_node_id
)
!=
0
)
{
if
(
ns_add_node
(
&
ns_head
,
basil_node_id
)
!=
0
)
{
error
(
"can not add node %s (nid%05u)"
,
node_ptr
->
name
,
error
(
"can not add node %s (nid%05u)"
,
node_ptr
->
name
,
...
...
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