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
9a09c055
Commit
9a09c055
authored
8 years ago
by
Alejandro Sanchez
Committed by
Tim Wickberg
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Testsuite - Fix test1.91 to exit when CPUs < Sockets*Cores*Threads
parent
fdde423b
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/test1.91
+14
-5
14 additions, 5 deletions
testsuite/expect/test1.91
with
14 additions
and
5 deletions
testsuite/expect/test1.91
+
14
−
5
View file @
9a09c055
...
...
@@ -102,7 +102,8 @@ if {[string compare $node_name ""] == 0} {
exit 1
}
# Determine how many sockets, cores, and threads the node has
# Determine how many cpus, sockets, cores, and threads the node has
set num_cputot 0
set num_sockets 0
set num_cores 0
set num_threads 0
...
...
@@ -113,6 +114,10 @@ expect {
set num_cores $expect_out(1,string)
exp_continue
}
-re "CPUTot=($number)" {
set num_cputot $expect_out(1,string)
exp_continue
}
-re "Sockets=($number)" {
set num_sockets $expect_out(1,string)
exp_continue
...
...
@@ -126,8 +131,8 @@ expect {
}
}
log_user 1
if {$num_sockets == 0 || $num_cores == 0 || $num_threads == 0} {
send_user "\nWARNING: Could not determine number of Sockets:Cores:Threads (saw $num_sockets:$num_cores:$num_threads)\n"
if {
$num_cputot == 0 ||
$num_sockets == 0 || $num_cores == 0 || $num_threads == 0} {
send_user "\nWARNING: Could not determine number of
CPUs:
Sockets:Cores:Threads (saw
$num_cputot:
$num_sockets:$num_cores:$num_threads)\n"
exit 0
}
# Intel KNL nodes with 272 threads generate huge numeric masks
...
...
@@ -138,7 +143,12 @@ if {$total_thread_count > 64} {
send_user "WARNING: Expect unable to work with more than 32-bit numbers\n"
exit 0
}
send_user "Node config: Sockets=$num_sockets Cores=$num_cores Threads=$num_threads\n\n"
send_user "Node config: CPUs=$num_cputot Sockets=$num_sockets Cores=$num_cores Threads=$num_threads\n\n"
if {$num_cputot < $total_thread_count} {
send_user "WARNING: CPUs=$num_cputot < (Sockets($num_sockets)*Cores($num_cores)*Threads($num_threads))\n"
send_user "WARNING: Test incompatible with lowered CPUs count.\n"
exit 0
}
#
# Build a test program to report affinity by task
...
...
@@ -224,7 +234,6 @@ expect {
}
-re $prompt
}
#############################################################################
#
# Run a job step with affinity to verify unique masks with min -B 1:1:1
...
...
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