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
4faa8cd0
Commit
4faa8cd0
authored
22 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Code clean-up. No changes to logic.
parent
e8e79cb9
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/slurmctld/job_mgr.c
+12
-14
12 additions, 14 deletions
src/slurmctld/job_mgr.c
with
12 additions
and
14 deletions
src/slurmctld/job_mgr.c
+
12
−
14
View file @
4faa8cd0
...
...
@@ -1338,15 +1338,14 @@ static int _job_create(job_desc_msg_t * job_desc, uint32_t * new_job_id,
/* can this user access this partition */
if
((
part_ptr
->
root_only
)
&&
(
submit_uid
!=
0
))
{
error
(
"_job_create: non-root job submission to partition %s by uid %u"
,
part_ptr
->
name
,
(
unsigned
int
)
submit_uid
);
info
(
"_job_create: uid %u access to partition %s denied, %s"
,
(
unsigned
int
)
submit_uid
,
part_ptr
->
name
,
"not root"
);
error_code
=
ESLURM_ACCESS_DENIED
;
return
error_code
;
}
if
(
validate_group
(
part_ptr
,
submit_uid
)
==
0
)
{
info
(
"_job_create:
job lacks group required of
partition %s
, uid
%
u
"
,
part_ptr
->
name
,
(
unsigned
int
)
submit_uid
);
info
(
"_job_create:
uid %u access to
partition %s
denied,
%
s
"
,
(
unsigned
int
)
submit_uid
,
part_ptr
->
name
,
"bad group"
);
error_code
=
ESLURM_JOB_MISSING_REQUIRED_PARTITION_GROUP
;
return
error_code
;
}
...
...
@@ -1356,8 +1355,8 @@ static int _job_create(job_desc_msg_t * job_desc, uint32_t * new_job_id,
/* insure that selected nodes are in this partition */
if
(
job_desc
->
req_nodes
)
{
error_code
=
node_name2bitmap
(
job_desc
->
req_nodes
,
&
req_bitmap
);
error_code
=
node_name2bitmap
(
job_desc
->
req_nodes
,
&
req_bitmap
);
if
(
error_code
==
EINVAL
)
{
error_code
=
ESLURM_INVALID_NODE_NAME
;
goto
cleanup
;
...
...
@@ -1371,8 +1370,7 @@ static int _job_create(job_desc_msg_t * job_desc, uint32_t * new_job_id,
if
(
bit_super_set
(
req_bitmap
,
part_ptr
->
node_bitmap
)
!=
1
)
{
info
(
"_job_create: requested nodes %s not in partition %s"
,
job_desc
->
req_nodes
,
part_ptr
->
name
);
error_code
=
ESLURM_REQUESTED_NODES_NOT_IN_PARTITION
;
error_code
=
ESLURM_REQUESTED_NODES_NOT_IN_PARTITION
;
goto
cleanup
;
}
i
=
count_cpus
(
req_bitmap
);
...
...
@@ -1383,8 +1381,8 @@ static int _job_create(job_desc_msg_t * job_desc, uint32_t * new_job_id,
job_desc
->
min_nodes
=
i
;
}
if
(
job_desc
->
exc_nodes
)
{
error_code
=
node_name2bitmap
(
job_desc
->
exc_nodes
,
&
exc_bitmap
);
error_code
=
node_name2bitmap
(
job_desc
->
exc_nodes
,
&
exc_bitmap
);
if
(
error_code
==
EINVAL
)
{
error_code
=
ESLURM_INVALID_NODE_NAME
;
goto
cleanup
;
...
...
@@ -1408,9 +1406,9 @@ static int _job_create(job_desc_msg_t * job_desc, uint32_t * new_job_id,
job_desc
->
min_nodes
=
1
;
if
(
job_desc
->
max_nodes
==
NO_VAL
)
job_desc
->
max_nodes
=
0
;
if
(
job_desc
->
min_node
s
>
part_ptr
->
total_cpus
)
{
if
(
job_desc
->
num_proc
s
>
part_ptr
->
total_cpus
)
{
info
(
"Job requested too many cpus (%d) of partition %s(%d)"
,
job_desc
->
min_node
s
,
part_ptr
->
name
,
job_desc
->
num_proc
s
,
part_ptr
->
name
,
part_ptr
->
total_cpus
);
error_code
=
ESLURM_TOO_MANY_REQUESTED_CPUS
;
goto
cleanup
;
...
...
@@ -1429,7 +1427,7 @@ static int _job_create(job_desc_msg_t * job_desc, uint32_t * new_job_id,
if
(
job_desc
->
max_nodes
&&
(
job_desc
->
max_nodes
<
job_desc
->
min_nodes
))
{
info
(
"Job's max_nodes < min_nodes"
);
error_code
=
ESLURM_TOO_MANY_REQUESTED_
CPU
S
;
error_code
=
ESLURM_TOO_MANY_REQUESTED_
NODE
S
;
goto
cleanup
;
}
if
(
job_desc
->
max_nodes
>
part_ptr
->
max_nodes
)
...
...
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