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
570fa0f9
Commit
570fa0f9
authored
7 years ago
by
Morris Jette
Browse files
Options
Downloads
Patches
Plain Diff
Cosmetic changes
parent
c3bf88c1
No related branches found
Branches containing commit
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
+7
-6
7 additions, 6 deletions
src/slurmctld/job_mgr.c
with
7 additions
and
6 deletions
src/slurmctld/job_mgr.c
+
7
−
6
View file @
570fa0f9
...
@@ -6429,18 +6429,18 @@ extern int job_limits_check(struct job_record **job_pptr, bool check_min_time)
...
@@ -6429,18 +6429,18 @@ extern int job_limits_check(struct job_record **job_pptr, bool check_min_time)
part_ptr = job_ptr->part_ptr;
part_ptr = job_ptr->part_ptr;
qos_ptr = job_ptr->qos_ptr;
qos_ptr = job_ptr->qos_ptr;
assoc_ptr = job_ptr->assoc_ptr;
assoc_ptr = job_ptr->assoc_ptr;
if (!detail_ptr) {
/* To prevent CLANG error */
if (!detail_ptr) {
fatal("job %u has NULL details_ptr", job_ptr->job_id);
fatal("job %u has NULL details_ptr", job_ptr->job_id);
return WAIT_NO_REASON;
return WAIT_NO_REASON;
/* To prevent CLANG error */
}
}
fail_reason = WAIT_NO_REASON;
fail_reason = WAIT_NO_REASON;
/*
/*
* Here we need to pretend we are just submitting the job so we can
* Here we need to pretend we are just submitting the job so we can
* utilize the already existing function _part_access_check.
If
* utilize the already existing function _part_access_check. If
any
* a
nything else is ever checked in that function this will most likely
* a
dditional fields in that function are ever checked, the fields set
*
have
to be
updat
ed.
*
below will need
to be
modifi
ed.
*/
*/
slurm_init_job_desc_msg(&job_desc);
slurm_init_job_desc_msg(&job_desc);
job_desc.reservation = job_ptr->resv_name;
job_desc.reservation = job_ptr->resv_name;
...
@@ -6448,7 +6448,8 @@ extern int job_limits_check(struct job_record **job_pptr, bool check_min_time)
...
@@ -6448,7 +6448,8 @@ extern int job_limits_check(struct job_record **job_pptr, bool check_min_time)
job_desc.alloc_node = job_ptr->alloc_node;
job_desc.alloc_node = job_ptr->alloc_node;
job_desc.min_cpus = detail_ptr->min_cpus;
job_desc.min_cpus = detail_ptr->min_cpus;
#ifdef HAVE_BG
#ifdef HAVE_BG
/* The node counts have been altered to reflect slurm nodes instead of
/*
* The node counts have been altered to reflect slurm nodes instead of
* cnodes, so we need to figure out the cnode count
* cnodes, so we need to figure out the cnode count
* by using the cpu counts. The partitions have been altered as well
* by using the cpu counts. The partitions have been altered as well
* so we have to use the original values.
* so we have to use the original values.
...
...
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