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
ef2cf714
Commit
ef2cf714
authored
19 years ago
by
Christopher J. Morrone
Browse files
Options
Downloads
Patches
Plain Diff
Rewrite of test13.1 to make it work more like intended.
parent
213a3898
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/globals.example
+3
-0
3 additions, 0 deletions
testsuite/expect/globals.example
testsuite/expect/test13.1
+26
-31
26 additions, 31 deletions
testsuite/expect/test13.1
with
29 additions
and
31 deletions
testsuite/expect/globals.example
+
3
−
0
View file @
ef2cf714
...
...
@@ -51,6 +51,9 @@ set poe "/usr/bin/poe"
set mpirun "mpirun"
set totalviewcli "/usr/local/bin/totalviewcli"
# Pattern to match your shell prompt
set prompt "(%|#|\\\$) $"
#
# Specify locations of other executable files used
# Only the shell names (e.g. bin_bash) must be full pathnames
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test13.1
+
26
−
31
View file @
ef2cf714
...
...
@@ -36,25 +36,10 @@ set exit_code 0
print_header $test_id
# Execute srun processes within an existing allocation
# We go through 2049 (32*64+1) switch contexts here
# Return 0 on successful completion, returns 1 otherwise
proc run_tasks { } {
global srun bin_sleep bin_usleep
set delay 10
send "$srun -N1 $bin_sleep $delay &\n"
for {set inx 0} {$inx < 50} {incr inx} {
exec $bin_usleep 1000
send "$srun -N1 -O -n32 true\n"
}
send "$bin_sleep $delay\n"
return 0
}
#
# Report the slurm configuration
#
set matches
0
set matches 0
log_user 0
spawn $scontrol show config
expect {
...
...
@@ -77,34 +62,44 @@ if {$matches != 1} {
}
#
# Submit a slurm allocate job
# Interactively print $SLURM_JOBID
# Then run a bunch of job steps within that allocation
# Submit a slurm allocate job, then run a bunch of job
# steps within that allocation
#
set timeout $max_job_delay
set job_id 0
set matches 0
spawn $srun --allocate -N1 --verbose -t2
expect {
-re "jobid ($number).*" {
set job_id $expect_out(1,string)
send "$bin_echo MY_ID=\$SLURM_JOBID \n"
exp_continue
}
-re "MY_ID=($number)" {
if {[run_tasks]} {
expect -re "jobid ($number).*"
set job_id $expect_out(1,string)
#send_user "SLURM_JOBID is $job_id\n"
expect -re $prompt
for {set inx 0} {$inx < 50} {incr inx} {
#sleep 0.001
send "$srun -N1 -O -n32 true\n"
expect {
-re "error" {
send_user "\nFAILURE: some error occurred\n"
set exit_code 1
exp_continue
}
send "exit\n"
exp_continue
-re $prompt {}
}
}
send "exit\n"
expect {
-re "error" {
send_user "\nFAILURE: some error occurred\n"
set exit_code 1
exp_continue
}
timeout {
send_user "\nFAILURE: srun not responding\n"
send_user "\nFAILURE: srun
(from --allocate)
not responding\n"
kill_srun
set exit_code 1
exp_continue
...
...
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