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
9d155873
Commit
9d155873
authored
16 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
minor changes to support configurations with more than one partition
parent
7cb7224f
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
testsuite/expect/test1.91
+27
-10
27 additions, 10 deletions
testsuite/expect/test1.91
testsuite/expect/test5.6
+1
-1
1 addition, 1 deletion
testsuite/expect/test5.6
with
28 additions
and
11 deletions
testsuite/expect/test1.91
+
27
−
10
View file @
9d155873
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
# anything else indicates a failure mode that must be investigated.
# anything else indicates a failure mode that must be investigated.
############################################################################
############################################################################
# Copyright (C) 2005-2007 The Regents of the University of California.
# Copyright (C) 2005-2007 The Regents of the University of California.
# Copyright (C) 2008 Lawrence Livermore National Security.
# Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
# Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
# Written by Morris Jette <jette1@llnl.gov>
# Written by Morris Jette <jette1@llnl.gov>
# LLNL-CODE-402394.
# LLNL-CODE-402394.
...
@@ -58,23 +59,39 @@ if {$affinity == 0} {
...
@@ -58,23 +59,39 @@ if {$affinity == 0} {
send_user "\nWARNING: task affinity not supported on this system\n"
send_user "\nWARNING: task affinity not supported on this system\n"
exit 0
exit 0
}
}
send_user "\ntask affinity plugin installed\n"
send_user "\ntask affinity plugin installed\n"
set num_sockets 0
# Identify a usable node
set num_cores 0
set timeout $max_job_delay
set num_threads 0
set node_name ""
set node_name ""
log_user 0
set srun_pid [spawn $srun -N1 --exclusive --verbose $bin_hostname]
# Here we need to get the last node since if we run this on heterogeneous
# systems the count can change
spawn $scontrol show node
expect {
expect {
-re "
NodeName=
($alpha_numeric)" {
-re "
on host
($alpha_numeric
_under
)" {
set node_name $expect_out(1,string)
set node_name $expect_out(1,string)
exp_continue
exp_continue
}
}
timeout {
send_user "\nFAILURE: srun not responding\n"
slow_kill $srun_pid
set exit_code 1
}
eof {
wait
}
}
if {[string compare $node_name ""] == 0} {
send_user "\nFAILURE: failed to get a usable node name\n"
exit 1
}
# Determine how many sockets, cores, and threads the node has
set num_sockets 0
set num_cores 0
set num_threads 0
log_user 0
spawn $scontrol show node $node_name
expect {
-re "Sockets=($number)" {
-re "Sockets=($number)" {
set num_sockets $expect_out(1,string)
set num_sockets $expect_out(1,string)
exp_continue
exp_continue
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test5.6
+
1
−
1
View file @
9d155873
...
@@ -287,7 +287,7 @@ expect {
...
@@ -287,7 +287,7 @@ expect {
wait
wait
}
}
}
}
if {[string compare partition2 ""]} {
if {[string compare partition2 ""]
== 0
} {
set partition2 $partition1
set partition2 $partition1
}
}
spawn $squeue --format=%P --noheader --partitions=$partition1
spawn $squeue --format=%P --noheader --partitions=$partition1
...
...
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