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
2c2d6d1a
Commit
2c2d6d1a
authored
19 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Refinement of TotalView bulk-launch test.
parent
d640664a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
testsuite/expect/Makefile.am
+1
-0
1 addition, 0 deletions
testsuite/expect/Makefile.am
testsuite/expect/test7.4
+17
-8
17 additions, 8 deletions
testsuite/expect/test7.4
testsuite/expect/test7.4.bash
+8
-0
8 additions, 0 deletions
testsuite/expect/test7.4.bash
with
26 additions
and
8 deletions
testsuite/expect/Makefile.am
+
1
−
0
View file @
2c2d6d1a
...
...
@@ -133,6 +133,7 @@ EXTRA_DIST = \
test7.3.io.c
\
test7.3.prog.c
\
test7.4
\
test7.4.bash
\
test7.4.prog.c
\
test8.1
\
test8.2
\
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test7.4
+
17
−
8
View file @
2c2d6d1a
...
...
@@ -33,18 +33,25 @@
# with SLURM; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
############################################################################
source ./globals
source ./globals
.example
set test_id "7.4"
set exit_code 0
set test_prog "test$test_id.prog"
set job_id 0
# Note this appears as a single argv value to totalviewcli
set bulk "set issue_dgo false; set bulk_launch_enabled true"
set no_bulk "set issue_dgo false; set bulk_launch_enabled false"
set bulk "set issue_dgo false;
d
set
TV::
bulk_launch_enabled true
; dset TV::bulk_launch_string {$srun -N%N -n%N --jobid=`test7.4.bash %t1` -l --input=none %B/tvdsvr%K -callback_host %H -callback_ports %L -set_pws %P -verbosity %V -working_directory %D %F}
"
set no_bulk "set issue_dgo false;
d
set
TV::
bulk_launch_enabled false"
print_header $test_id
#
# Put desired SLURM install directory at head of search path for bulk launch
# command to work (runs "srun" without path)
#
set env(PATH) "$slurm_dir/bin:$env(PATH)"
send_user "\n $env(PATH)\n"
#
# Test for existence of mpi compiler and totalview
#
...
...
@@ -82,9 +89,9 @@ set matches 0
set no_capability 0
set timeout $max_job_delay
send_user "======================================================================\n"
send_user "======================= Run with bunk transfer
===
===================\n"
send_user "======================= Run with
out
bunk transfer ===================\n"
send_user "======================================================================\n"
spawn $totalviewcli -verbosity info -e $bulk $srun -a -n4 -N1-2 -O -t1 $test_prog
spawn $totalviewcli -verbosity info -e $
no_
bulk $srun -a -n4 -N1-2 -O -t1 $test_prog
expect {
-re "d1.<>" {
if {$matches == 0} {
...
...
@@ -153,6 +160,8 @@ if {$matches != 12} {
send_user "\nFAILURE: totalviewcli operation matches $matches of 12\n"
send_user "Remove your ~/.totalview directory and try again\n"
set exit_code 1
} else {
send_user "\nSo far, so good...\n\n\n"
}
#
...
...
@@ -161,9 +170,9 @@ if {$matches != 12} {
set matches 0
set no_capability 0
send_user "======================================================================\n"
send_user "===================== Run with
out
bunk transfer =====================\n"
send_user "===================== Run with bunk transfer
===
=====================\n"
send_user "======================================================================\n"
spawn $totalviewcli -verbosity info -e $
no_
bulk $srun -a -n4 -N1-2 -O -t1 $test_prog
spawn $totalviewcli -verbosity info -e $bulk $srun -a -n4 -N1-2 -O -t1 $test_prog
expect {
-re "d1.<>" {
if {$matches == 0} {
...
...
This diff is collapsed.
Click to expand it.
testsuite/expect/test7.4.bash
0 → 100755
+
8
−
0
View file @
2c2d6d1a
#!/bin/sh
# for a file containing a list of allocated nodes, get the slurm
# jobid for the job running on that node for this user
#
node
=
`
head
-n
1
$1
`
user
=
`
id
-un
`
jobid
=
`
squeue
-h
-o
%i
-u
$user
-n
$node
`
echo
$jobid
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