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
294ebee7
Commit
294ebee7
authored
15 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
get test4.12 working properly with shared=exclusive on default partition
parent
4927afcd
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
testsuite/expect/test4.12
+8
-5
8 additions, 5 deletions
testsuite/expect/test4.12
with
8 additions
and
5 deletions
testsuite/expect/test4.12
+
8
−
5
View file @
294ebee7
...
@@ -310,8 +310,13 @@ if {!$def_part_found} {
...
@@ -310,8 +310,13 @@ if {!$def_part_found} {
# find the nodes in the default partition
# find the nodes in the default partition
log_user 1
log_user 1
set def_hostlist ""
set def_hostlist ""
set part_exclusive 0
spawn $scontrol show part $def_part
spawn $scontrol show part $def_part
expect {
expect {
-re " Shared=EXCLUSIVE" {
set part_exclusive 1
exp_continue
}
-re " Nodes=($alpha_numeric_nodelist)" {
-re " Nodes=($alpha_numeric_nodelist)" {
set def_hostlist $expect_out(1,string)
set def_hostlist $expect_out(1,string)
exp_continue
exp_continue
...
@@ -429,12 +434,10 @@ if {![string compare $select_type "bluegene"]} {
...
@@ -429,12 +434,10 @@ if {![string compare $select_type "bluegene"]} {
} elseif {![string compare $select_type "linear"]} {
} elseif {![string compare $select_type "linear"]} {
set smallest $inode_procs
set smallest $inode_procs
} else {
} else {
#
# Ignore for now, but if the partition's "Shared=Exclusive" then allocate
# whole nodes to the jobs in that partition, set smallest $inode_procs
#
set select_params [test_select_type_params]
set select_params [test_select_type_params]
if {![string compare $select_params "CR_CPU"]} {
if {$part_exclusive == 1} {
set smallest $inode_procs
} elseif {![string compare $select_params "CR_CPU"]} {
set smallest $inode_threads_per_core
set smallest $inode_threads_per_core
} elseif {![string compare $select_params "CR_CPU_MEMORY"]} {
} elseif {![string compare $select_params "CR_CPU_MEMORY"]} {
set smallest $inode_threads_per_core
set smallest $inode_threads_per_core
...
...
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