Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
elpa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
10
Issues
10
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
elpa
elpa
Commits
369f32ec
Commit
369f32ec
authored
Dec 11, 2017
by
Andreas Marek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Gitlab CI: make test parameters variable
parent
02d2e569
Changes
2
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1610 additions
and
803 deletions
+1610
-803
.gitlab-ci.yml
.gitlab-ci.yml
+1603
-800
generate_gitlab_ci_tests.py
generate_gitlab_ci_tests.py
+7
-3
No files found.
.gitlab-ci.yml
View file @
369f32ec
This diff is collapsed.
Click to expand it.
generate_gitlab_ci_tests.py
View file @
369f32ec
...
@@ -16,7 +16,7 @@ def set_requested_memory(na):
...
@@ -16,7 +16,7 @@ def set_requested_memory(na):
if
(
na
==
"150"
):
if
(
na
==
"150"
):
memory
=
"2Gb"
memory
=
"2Gb"
elif
(
na
>
"150"
and
na
<=
"1500"
):
elif
(
na
>
"150"
and
na
<=
"1500"
):
memory
=
"
6
Gb"
memory
=
"
12
Gb"
elif
(
na
>
"1500"
and
na
<
"5000"
):
elif
(
na
>
"1500"
and
na
<
"5000"
):
memory
=
"12Gb"
memory
=
"12Gb"
else
:
else
:
...
@@ -250,6 +250,9 @@ print(" - if [ \"$CI_RUNNER_DESCRIPTION\" = \"appdev-miy01\" ]; then export SLU
...
@@ -250,6 +250,9 @@ print(" - if [ \"$CI_RUNNER_DESCRIPTION\" = \"appdev-miy01\" ]; then export SLU
print
(
" - if [
\"
$CI_RUNNER_DESCRIPTION
\"
=
\"
appdev-miy02
\"
]; then export SLURMHOST=miy02 && export SLURMPARTITION=minsky && export CONFIGURETIME=5 && export BUILDTIME=20 && export RUNTIME=20 && export CONTSTRAINTS=
\"
power8&gpu0&gpu1&gpu2&gpu3
\"
&& export GEOMETRYRESERVATION=
\"
gpu:4
\"
; fi"
)
print
(
" - if [
\"
$CI_RUNNER_DESCRIPTION
\"
=
\"
appdev-miy02
\"
]; then export SLURMHOST=miy02 && export SLURMPARTITION=minsky && export CONFIGURETIME=5 && export BUILDTIME=20 && export RUNTIME=20 && export CONTSTRAINTS=
\"
power8&gpu0&gpu1&gpu2&gpu3
\"
&& export GEOMETRYRESERVATION=
\"
gpu:4
\"
; fi"
)
print
(
" - if [
\"
$CI_RUNNER_DESCRIPTION
\"
=
\"
appdev-miy03
\"
]; then export SLURMHOST=miy03 && export SLURMPARTITION=minsky && export CONFIGURETIME=5 && export BUILDTIME=20 && export RUNTIME=20 && export CONTSTRAINTS=
\"
power8&gpu0&gpu1&gpu2&gpu3
\"
&& export GEOMETRYRESERVATION=
\"
gpu:4
\"
; fi"
)
print
(
" - if [
\"
$CI_RUNNER_DESCRIPTION
\"
=
\"
appdev-miy03
\"
]; then export SLURMHOST=miy03 && export SLURMPARTITION=minsky && export CONFIGURETIME=5 && export BUILDTIME=20 && export RUNTIME=20 && export CONTSTRAINTS=
\"
power8&gpu0&gpu1&gpu2&gpu3
\"
&& export GEOMETRYRESERVATION=
\"
gpu:4
\"
; fi"
)
print
(
"
\n
"
)
print
(
"
\n
"
)
print
(
" - export MATRIX_SIZE=150"
)
print
(
" - export NUMBER_OF_EIGENVECTORS=150"
)
print
(
" - export BLOCK_SIZE=16"
)
print
(
" - ./autogen.sh"
)
print
(
" - ./autogen.sh"
)
print
(
"
\n\n
"
)
print
(
"
\n\n
"
)
...
@@ -565,6 +568,7 @@ for cc, fc, m, o, p, a, b, g, cov, instr, addr, na in product(
...
@@ -565,6 +568,7 @@ for cc, fc, m, o, p, a, b, g, cov, instr, addr, na in product(
print
(
"# "
+
cc
+
"-"
+
fc
+
"-"
+
m
+
"-"
+
o
+
"-"
+
p
+
"-"
+
a
+
"-"
+
b
+
"-"
+
g
+
"-"
+
cov
+
"-"
+
instr
+
"-"
+
addr
)
print
(
"# "
+
cc
+
"-"
+
fc
+
"-"
+
m
+
"-"
+
o
+
"-"
+
p
+
"-"
+
a
+
"-"
+
b
+
"-"
+
g
+
"-"
+
cov
+
"-"
+
instr
+
"-"
+
addr
)
print
(
cc
+
"-"
+
fc
+
"-"
+
m
+
"-"
+
o
+
"-"
+
p
+
"-"
+
a
+
"-"
+
b
+
"-"
+
g
+
"-"
+
cov
+
"-"
+
instr
+
"-"
+
addr
+
"-jobs:"
)
print
(
cc
+
"-"
+
fc
+
"-"
+
m
+
"-"
+
o
+
"-"
+
p
+
"-"
+
a
+
"-"
+
b
+
"-"
+
g
+
"-"
+
cov
+
"-"
+
instr
+
"-"
+
addr
+
"-jobs:"
)
print
(
" retry: 2"
)
if
(
MasterOnly
):
if
(
MasterOnly
):
print
(
" only:"
)
print
(
" only:"
)
print
(
" - /.*master.*/"
)
print
(
" - /.*master.*/"
)
...
@@ -645,7 +649,7 @@ for cc, fc, m, o, p, a, b, g, cov, instr, addr, na in product(
...
@@ -645,7 +649,7 @@ for cc, fc, m, o, p, a, b, g, cov, instr, addr, na in product(
if
(
o
==
"openmp"
and
cov
==
"coverage"
):
if
(
o
==
"openmp"
and
cov
==
"coverage"
):
print
(
" - export OMP_NUM_THREADS=1"
)
print
(
" - export OMP_NUM_THREADS=1"
)
for
na
in
sorted
(
matrix_size
.
keys
(),
reverse
=
True
):
for
na
in
sorted
(
matrix_size
.
keys
(),
reverse
=
True
):
print
(
" - make check TASKS="
+
str
(
MPI_TASKS
)
+
" TEST_FLAGS=
\"
"
+
matrix_size
[
na
]
+
" "
+
str
(
nev
)
+
" "
+
str
(
nblk
)
+
"
\"
|| { cat test-suite.log; exit 1; }"
)
print
(
" - make check TASKS="
+
str
(
MPI_TASKS
)
+
" TEST_FLAGS=
\"
$MATRIX_SIZE $NUMBER_OF_EIGENVECTORS $BLOCK_SIZE "
+
"
\"
|| { cat test-suite.log; exit 1; }"
)
print
(
" - grep -i
\"
Expected %stop
\"
test-suite.log && exit 1 || true ;"
)
print
(
" - grep -i
\"
Expected %stop
\"
test-suite.log && exit 1 || true ;"
)
if
(
instr
==
"avx2"
or
instr
==
"avx512"
or
instr
==
"knl"
or
g
==
"with-gpu"
):
if
(
instr
==
"avx2"
or
instr
==
"avx512"
or
instr
==
"knl"
or
g
==
"with-gpu"
):
...
@@ -661,7 +665,7 @@ for cc, fc, m, o, p, a, b, g, cov, instr, addr, na in product(
...
@@ -661,7 +665,7 @@ for cc, fc, m, o, p, a, b, g, cov, instr, addr, na in product(
cores
=
set_number_of_cores
(
MPI_TASKS
,
o
)
cores
=
set_number_of_cores
(
MPI_TASKS
,
o
)
#print(" - echo \" srun --ntasks=1 --cpus-per-task="+str(cores)+" $SRUN_COMMANDLINE_RUN\" ")
#print(" - echo \" srun --ntasks=1 --cpus-per-task="+str(cores)+" $SRUN_COMMANDLINE_RUN\" ")
print
(
" - srun --ntasks-per-core=1 --ntasks=1 --cpus-per-task="
+
str
(
cores
)
+
" $SRUN_COMMANDLINE_RUN
\
print
(
" - srun --ntasks-per-core=1 --ntasks=1 --cpus-per-task="
+
str
(
cores
)
+
" $SRUN_COMMANDLINE_RUN
\
/scratch/elpa/bin/run_elpa.sh "
+
str
(
MPI_TASKS
)
+
openmp_threads
+
"
\"
TEST_FLAGS=
\\\"
"
+
matrix_size
[
na
]
+
" "
+
str
(
nev
)
+
" "
+
str
(
nblk
)
+
"
\\\"
|| { cat test-suite.log; exit 1; }
\"
"
)
/scratch/elpa/bin/run_elpa.sh "
+
str
(
MPI_TASKS
)
+
openmp_threads
+
"
\"
TEST_FLAGS=
\\\"
$MATRIX_SIZE $NUMBER_OF_EIGENVECTORS $BLOCK_SIZE "
+
"
\\\"
|| { cat test-suite.log; exit 1; }
\"
"
)
if
(
cov
==
"coverage"
):
if
(
cov
==
"coverage"
):
print
(
" - ./ci_coverage_collect"
)
print
(
" - ./ci_coverage_collect"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment