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
3339e600
Commit
3339e600
authored
15 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
fixd 4.12 to work under new scontrol output
parent
bca711d8
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
+20
-24
20 additions, 24 deletions
testsuite/expect/test4.12
with
20 additions
and
24 deletions
testsuite/expect/test4.12
+
20
−
24
View file @
3339e600
...
...
@@ -55,7 +55,7 @@ proc scontrol_test { node proc_cnt } {
send "$scontrol show node $node\r"
expect {
-re "Alloc
Procs
=($number)" {
-re "
CPU
Alloc=($number)" {
set num_alloc $expect_out(1,string)
set found 1
if {$proc_cnt != $num_alloc} {
...
...
@@ -357,34 +357,30 @@ if {$host_cnt == 0} {
# find me an idle node in default partition
log_user 0
set inode_found 0
for {set host_inx 0} {($host_inx < $host_cnt) && ($inode_found == 0)} {incr host_inx} {
spawn $scontrol show node
expect {
-re "NodeName=($alpha_numeric_under) State=IDLE Procs=($number)(K?).* Sockets=($number) CoresPerSocket=($number) ThreadsPerCore=($number)" {
set inode_name $expect_out(1,string)
set inode_procs $expect_out(2,string)
if {[string compare $expect_out(3,string) ""]} {
set inode_procs [expr $inode_procs * 1024]
}
set inode_sockets $expect_out(4,string)
set inode_cores_per_socket $expect_out(5,string)
set inode_threads_per_core $expect_out(6,string)
set inode_found 1
exp_continue
}
timeout {
send_user "\nFAILURE: scontrol not responding\n"
set exit_code 1
}
eof {
wait
set inode_procs 0
spawn $scontrol -o show node $def_hostlist
expect {
-re "NodeName=($alpha_numeric_under) .*CoresPerSocket=($number) .*CPUTot=($number)(K?).* Sockets=($number) State=IDLE ThreadsPerCore=($number)" {
set inode_name $expect_out(1,string)
set inode_cores_per_socket $expect_out(2,string)
set inode_procs $expect_out(3,string)
if {[string compare $expect_out(4,string) ""]} {
set inode_procs [expr $inode_procs * 1024]
}
set inode_sockets $expect_out(5,string)
set inode_threads_per_core $expect_out(6,string)
}
timeout {
send_user "\nFAILURE: scontrol not responding\n"
set exit_code 1
}
eof {
wait
}
}
log_user 1
if {!$inode_
found
} {
if {!$inode_
procs
} {
send_user "\nFAILURE: couldn't find an idle node in the default partition\n"
exit 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