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
5e318de0
Commit
5e318de0
authored
11 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
Handle threads per core on test
parent
f0697402
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/inc3.11.9
+13
-6
13 additions, 6 deletions
testsuite/expect/inc3.11.9
with
13 additions
and
6 deletions
testsuite/expect/inc3.11.9
+
13
−
6
View file @
5e318de0
...
...
@@ -203,7 +203,9 @@ proc inc3_11_9 {} {
# Submit a batch job: a job using cores available in first 5 nodes
set core_res_num [ expr $cores_per_node / 2 ]
set core_res_num [ expr $core_res_num - 1 ]
set sbatch_pid [spawn $sbatch --ntasks-per-node=$core_res_num --nodelist=$def_node_name\[$min_node_inx\-$max_node_inx\] --output=/dev/null $file_in]
set thread_res_num [ expr $core_res_num * $res_thread_cnt ]
set sbatch_pid [spawn $sbatch --ntasks-per-node=$thread_res_num --nodelist=$def_node_name\[$min_node_inx\-$max_node_inx\] --output=/dev/null $file_in]
expect {
-re "Submitted batch job ($number)" {
set job_id $expect_out(1,string)
...
...
@@ -260,7 +262,8 @@ proc inc3_11_9 {} {
# Submit a batch job: a job using more cores than available in first 5 nodes
set core_res_num [ expr $cores_per_node / 2 ]
set sbatch_pid [spawn $sbatch --ntasks-per-node=$core_res_num --nodelist=$def_node_name\[$min_node_inx\-$max_node_inx\] --output=/dev/null $file_in]
set thread_res_num [ expr $core_res_num * $res_thread_cnt ]
set sbatch_pid [spawn $sbatch --ntasks-per-node=$thread_res_num --nodelist=$def_node_name\[$min_node_inx\-$max_node_inx\] --output=/dev/null $file_in]
expect {
-re "Submitted batch job ($number)" {
set job_id $expect_out(1,string)
...
...
@@ -318,7 +321,8 @@ proc inc3_11_9 {} {
# Submit a batch job: a job using cores reserved in first reservation
set core_res_num [ expr $cores_per_node / 2 ]
set sbatch_pid [spawn $sbatch --ntasks-per-node=$core_res_num --nodelist=$def_node_name\[$min_node_inx\-$max_node_inx\] --reservation=$res_name1 --output=/dev/null $file_in]
set thread_res_num [ expr $core_res_num * $res_thread_cnt ]
set sbatch_pid [spawn $sbatch --ntasks-per-node=$thread_res_num --nodelist=$def_node_name\[$min_node_inx\-$max_node_inx\] --reservation=$res_name1 --output=/dev/null $file_in]
expect {
-re "Submitted batch job ($number)" {
set job_id $expect_out(1,string)
...
...
@@ -378,7 +382,8 @@ proc inc3_11_9 {} {
set core_res_num [ expr $cores_per_node / 2 ]
set core_res_num [ expr $core_res_num * 5 ]
set core_res_num [ expr $core_res_num + 1 ]
set sbatch_pid [spawn $sbatch --ntasks-per-node=$core_res_num --nodelist=$def_node_name\[$min_node_inx\-$max_node_inx\] --reservation=$res_name1 --output=/dev/null $file_in]
set thread_res_num [ expr $core_res_num * $res_thread_cnt ]
set sbatch_pid [spawn $sbatch --ntasks-per-node=$thread_res_num --nodelist=$def_node_name\[$min_node_inx\-$max_node_inx\] --reservation=$res_name1 --output=/dev/null $file_in]
expect {
-re "Submitted batch job ($number)" {
set job_id $expect_out(1,string)
...
...
@@ -435,7 +440,8 @@ proc inc3_11_9 {} {
cancel_job $job_id
# Submit a batch job: a job using cores reserved in second reservation
set sbatch_pid [spawn $sbatch --ntasks-per-node=1 --nodelist=$def_node_name\[$min_node_inx\-$max_node_inx\] --reservation=$res_name --output=/dev/null $file_in]
set thread_res_num [ expr 1 * $res_thread_cnt ]
set sbatch_pid [spawn $sbatch --ntasks-per-node=$thread_res_num --nodelist=$def_node_name\[$min_node_inx\-$max_node_inx\] --reservation=$res_name --output=/dev/null $file_in]
expect {
-re "Submitted batch job ($number)" {
set job_id $expect_out(1,string)
...
...
@@ -492,7 +498,8 @@ proc inc3_11_9 {} {
cancel_job $job_id
# Submit a batch job: a job using more cores than reserved in second reservation
set sbatch_pid [spawn $sbatch --ntasks-per-node=2 --nodelist=$def_node_name\[$min_node_inx\-$max_node_inx\] --reservation=$res_name --output=/dev/null $file_in]
set thread_res_num [ expr 2 * $res_thread_cnt ]
set sbatch_pid [spawn $sbatch --ntasks-per-node=$thread_res_num --nodelist=$def_node_name\[$min_node_inx\-$max_node_inx\] --reservation=$res_name --output=/dev/null $file_in]
expect {
-re "Submitted batch job ($number)" {
set job_id $expect_out(1,string)
...
...
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