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
29d307ff
Commit
29d307ff
authored
14 years ago
by
Don Lipari
Browse files
Options
Downloads
Patches
Plain Diff
More improvements to test1.84
parent
99076ee1
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.84
+6
-5
6 additions, 5 deletions
testsuite/expect/test1.84
with
6 additions
and
5 deletions
testsuite/expect/test1.84
+
6
−
5
View file @
29d307ff
...
@@ -99,6 +99,7 @@ if {[string compare $host ""] == 0} {
...
@@ -99,6 +99,7 @@ if {[string compare $host ""] == 0} {
}
}
# Convert CPU count to core count if necessary
# Convert CPU count to core count if necessary
if {$cpu_cnt != $task_cnt} {
if {$cpu_cnt != $task_cnt} {
set core_cnt $cpu_cnt
set threads_per_core 1
set threads_per_core 1
spawn $scontrol show node $host
spawn $scontrol show node $host
expect {
expect {
...
@@ -115,10 +116,10 @@ if {$cpu_cnt != $task_cnt} {
...
@@ -115,10 +116,10 @@ if {$cpu_cnt != $task_cnt} {
}
}
}
}
if {$threads_per_core != 0} {
if {$threads_per_core != 0} {
set cpu_cnt [expr $cpu_cnt
/
$threads_per_core]
set cpu_cnt [expr $cpu_cnt
*
$threads_per_core]
}
}
if {$cpu_cnt == $task_cnt} {
if {$cpu_cnt == $task_cnt} {
send_user "NOTE: Allocated cores and $threads_per_core CPUs per core\n"
send_user "NOTE: Allocated
$core_cnt
cores and $threads_per_core CPUs per core\n"
}
}
}
}
if {$cpu_cnt != $task_cnt} {
if {$cpu_cnt != $task_cnt} {
...
@@ -133,10 +134,10 @@ if {$cpu_cnt < 2} {
...
@@ -133,10 +134,10 @@ if {$cpu_cnt < 2} {
}
}
#
#
#
Submit a 1 node job to determine the node's CPU count
#
Now verify the --cpus-per-task option
#
#
set task_cnt 0
set task_cnt 0
set srun_pid [spawn $srun -N1
-t1 --nodelist=$host
--cpus-per-task=2 --exclusive -l $bin_printenv SLURMD_NODENAME]
set srun_pid [spawn $srun -N1 --cpus-per-task=2 --exclusive -l
-t1 --nodelist=$host
$bin_printenv SLURMD_NODENAME]
expect {
expect {
-re "Invalid node name specified" {
-re "Invalid node name specified" {
send_user "\nWARNING: Appears you are using "
send_user "\nWARNING: Appears you are using "
...
@@ -159,7 +160,7 @@ expect {
...
@@ -159,7 +160,7 @@ expect {
}
}
#
#
#
Check CPU count
#
Verify that half the number of tasks were spawned
#
#
if {$task_cnt != [expr $cpu_cnt / 2]} {
if {$task_cnt != [expr $cpu_cnt / 2]} {
send_user "\nFAILURE: Improper task count for given cpus-per-task\n"
send_user "\nFAILURE: Improper task count for given cpus-per-task\n"
...
...
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