Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hysop
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
particle_methods
hysop
Commits
a634a8db
Commit
a634a8db
authored
4 years ago
by
Jean-Baptiste Keck
Browse files
Options
Downloads
Patches
Plain Diff
do not escape PYTHON_EXECUTABLE to allow options
parent
1bca99ef
No related branches found
No related tags found
2 merge requests
!24
Resolve "Add python3.x support"
,
!15
WIP: Resolve "HySoP with tasks"
Pipeline
#52542
passed
4 years ago
Stage: env
Stage: configure
Stage: build
Stage: install
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hysop/core/tests/test_checkpoint.sh
+16
-16
16 additions, 16 deletions
hysop/core/tests/test_checkpoint.sh
with
16 additions
and
16 deletions
hysop/core/tests/test_checkpoint.sh
+
16
−
16
View file @
a634a8db
...
...
@@ -42,8 +42,8 @@ if [[ ! -f "${EXAMPLE_FILE}" ]]; then
fi
echo
' Running simulations...'
"
${
PYTHON_EXECUTABLE
}
"
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-S
"
${
TEST_DIR
}
/checkpoint0.tar"
--dump-dir
"
${
TEST_DIR
}
/run0"
--checkpoint-dump-time
0.05
--checkpoint-dump-freq
0
"
${
PYTHON_EXECUTABLE
}
"
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-S
"
${
TEST_DIR
}
/checkpoint1.tar"
--dump-dir
"
${
TEST_DIR
}
/run1"
--checkpoint-dump-time
0.05
--checkpoint-dump-freq
0
${
PYTHON_EXECUTABLE
}
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-S
"
${
TEST_DIR
}
/checkpoint0.tar"
--dump-dir
"
${
TEST_DIR
}
/run0"
--checkpoint-dump-time
0.05
--checkpoint-dump-freq
0
${
PYTHON_EXECUTABLE
}
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-S
"
${
TEST_DIR
}
/checkpoint1.tar"
--dump-dir
"
${
TEST_DIR
}
/run1"
--checkpoint-dump-time
0.05
--checkpoint-dump-freq
0
echo
' Comparing solutions...'
echo
" >debug dumps match"
...
...
@@ -56,8 +56,8 @@ done
echo
echo
' Running simulations from checkpoints...'
"
${
PYTHON_EXECUTABLE
}
"
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-L
"
${
TEST_DIR
}
/checkpoint0.tar"
--dump-dir
"
${
TEST_DIR
}
/run2"
"
${
PYTHON_EXECUTABLE
}
"
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-L
"
${
TEST_DIR
}
/checkpoint1.tar"
--dump-dir
"
${
TEST_DIR
}
/run3"
${
PYTHON_EXECUTABLE
}
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-L
"
${
TEST_DIR
}
/checkpoint0.tar"
--dump-dir
"
${
TEST_DIR
}
/run2"
${
PYTHON_EXECUTABLE
}
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-L
"
${
TEST_DIR
}
/checkpoint1.tar"
--dump-dir
"
${
TEST_DIR
}
/run3"
echo
' Comparing solutions...'
compare_files
"
${
TEST_DIR
}
/run2/dump/run.txt"
"
${
TEST_DIR
}
/run3/dump/run.txt"
...
...
@@ -88,8 +88,8 @@ if [[ ! -f "${EXAMPLE_FILE}" ]]; then
fi
echo
' Running simulations...'
${
MPIRUN_EXECUTABLE
}
-np
4
"
${
PYTHON_EXECUTABLE
}
"
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-S
"
${
TEST_DIR
}
/checkpoint0.tar"
--dump-dir
"
${
TEST_DIR
}
/run0"
--checkpoint-dump-time
0.05
--checkpoint-dump-freq
0
${
MPIRUN_EXECUTABLE
}
-np
4
"
${
PYTHON_EXECUTABLE
}
"
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-S
"
${
TEST_DIR
}
/checkpoint1.tar"
--dump-dir
"
${
TEST_DIR
}
/run1"
--checkpoint-dump-time
0.05
--checkpoint-dump-freq
0
${
MPIRUN_EXECUTABLE
}
-np
4
${
PYTHON_EXECUTABLE
}
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-S
"
${
TEST_DIR
}
/checkpoint0.tar"
--dump-dir
"
${
TEST_DIR
}
/run0"
--checkpoint-dump-time
0.05
--checkpoint-dump-freq
0
${
MPIRUN_EXECUTABLE
}
-np
4
${
PYTHON_EXECUTABLE
}
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-S
"
${
TEST_DIR
}
/checkpoint1.tar"
--dump-dir
"
${
TEST_DIR
}
/run1"
--checkpoint-dump-time
0.05
--checkpoint-dump-freq
0
echo
' Comparing solutions...'
echo
" >debug dumps match"
...
...
@@ -102,8 +102,8 @@ done
echo
echo
' Running simulations from checkpoints...'
${
MPIRUN_EXECUTABLE
}
-np
4
"
${
PYTHON_EXECUTABLE
}
"
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-L
"
${
TEST_DIR
}
/checkpoint0.tar"
--dump-dir
"
${
TEST_DIR
}
/run2"
${
MPIRUN_EXECUTABLE
}
-np
4
"
${
PYTHON_EXECUTABLE
}
"
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-L
"
${
TEST_DIR
}
/checkpoint1.tar"
--dump-dir
"
${
TEST_DIR
}
/run3"
${
MPIRUN_EXECUTABLE
}
-np
4
${
PYTHON_EXECUTABLE
}
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-L
"
${
TEST_DIR
}
/checkpoint0.tar"
--dump-dir
"
${
TEST_DIR
}
/run2"
${
MPIRUN_EXECUTABLE
}
-np
4
${
PYTHON_EXECUTABLE
}
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-L
"
${
TEST_DIR
}
/checkpoint1.tar"
--dump-dir
"
${
TEST_DIR
}
/run3"
echo
' Comparing solutions...'
compare_files
"
${
TEST_DIR
}
/run2/dump/run.txt"
"
${
TEST_DIR
}
/run3/dump/run.txt"
...
...
@@ -138,9 +138,9 @@ fi
# Fortran FFTW does not yield exactly the same results in parallel so we use h5diff with an absolute tolerance of 10^-12
echo
' Running simulations...'
${
MPIRUN_EXECUTABLE
}
-np
1
"
${
PYTHON_EXECUTABLE
}
"
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-impl
fortran
-cp
fp64
-S
"
${
TEST_DIR
}
/checkpoint0.tar"
--dump-dir
"
${
TEST_DIR
}
/run0"
--checkpoint-dump-time
0.15
--checkpoint-dump-freq
0
${
MPIRUN_EXECUTABLE
}
-np
2
"
${
PYTHON_EXECUTABLE
}
"
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-impl
fortran
-cp
fp64
-S
"
${
TEST_DIR
}
/checkpoint1.tar"
--dump-dir
"
${
TEST_DIR
}
/run1"
--checkpoint-dump-time
0.15
--checkpoint-dump-freq
0
${
MPIRUN_EXECUTABLE
}
-np
3
"
${
PYTHON_EXECUTABLE
}
"
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-impl
fortran
-cp
fp64
-S
"
${
TEST_DIR
}
/checkpoint2.tar"
--dump-dir
"
${
TEST_DIR
}
/run2"
--checkpoint-dump-time
0.15
--checkpoint-dump-freq
0
${
MPIRUN_EXECUTABLE
}
-np
1
${
PYTHON_EXECUTABLE
}
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-impl
fortran
-cp
fp64
-S
"
${
TEST_DIR
}
/checkpoint0.tar"
--dump-dir
"
${
TEST_DIR
}
/run0"
--checkpoint-dump-time
0.15
--checkpoint-dump-freq
0
${
MPIRUN_EXECUTABLE
}
-np
2
${
PYTHON_EXECUTABLE
}
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-impl
fortran
-cp
fp64
-S
"
${
TEST_DIR
}
/checkpoint1.tar"
--dump-dir
"
${
TEST_DIR
}
/run1"
--checkpoint-dump-time
0.15
--checkpoint-dump-freq
0
${
MPIRUN_EXECUTABLE
}
-np
3
${
PYTHON_EXECUTABLE
}
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-impl
fortran
-cp
fp64
-S
"
${
TEST_DIR
}
/checkpoint2.tar"
--dump-dir
"
${
TEST_DIR
}
/run2"
--checkpoint-dump-time
0.15
--checkpoint-dump-freq
0
echo
' Comparing solutions...'
for
f0
in
$(
find
"
${
TEST_DIR
}
/run0"
-name
'*.h5'
|
sort
-n
)
;
do
f1
=
$(
echo
"
${
f0
}
"
|
sed
's/run0/run1/'
)
...
...
@@ -152,9 +152,9 @@ done
echo
' Running simulations from checkpoints using different MPI topologies...'
COMMON_OPTIONS
=
"-NC -d24 --tend 0.3 --dump-tstart 0.15 --dump-freq 1 --hdf5-disable-slicing --hdf5-disable-compression --checkpoint-relax-constraints"
${
MPIRUN_EXECUTABLE
}
-np
3
"
${
PYTHON_EXECUTABLE
}
"
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-impl
fortran
-cp
fp64
-L
"
${
TEST_DIR
}
/checkpoint0.tar"
--dump-dir
"
${
TEST_DIR
}
/run3"
${
MPIRUN_EXECUTABLE
}
-np
2
"
${
PYTHON_EXECUTABLE
}
"
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-impl
fortran
-cp
fp64
-L
"
${
TEST_DIR
}
/checkpoint1.tar"
--dump-dir
"
${
TEST_DIR
}
/run4"
${
MPIRUN_EXECUTABLE
}
-np
1
"
${
PYTHON_EXECUTABLE
}
"
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-impl
fortran
-cp
fp64
-L
"
${
TEST_DIR
}
/checkpoint2.tar"
--dump-dir
"
${
TEST_DIR
}
/run5"
${
MPIRUN_EXECUTABLE
}
-np
3
${
PYTHON_EXECUTABLE
}
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-impl
fortran
-cp
fp64
-L
"
${
TEST_DIR
}
/checkpoint0.tar"
--dump-dir
"
${
TEST_DIR
}
/run3"
${
MPIRUN_EXECUTABLE
}
-np
2
${
PYTHON_EXECUTABLE
}
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-impl
fortran
-cp
fp64
-L
"
${
TEST_DIR
}
/checkpoint1.tar"
--dump-dir
"
${
TEST_DIR
}
/run4"
${
MPIRUN_EXECUTABLE
}
-np
1
${
PYTHON_EXECUTABLE
}
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-impl
fortran
-cp
fp64
-L
"
${
TEST_DIR
}
/checkpoint2.tar"
--dump-dir
"
${
TEST_DIR
}
/run5"
echo
' Comparing solutions...'
for
f3
in
$(
find
"
${
TEST_DIR
}
/run3"
-name
'*.h5'
|
sort
-n
)
;
do
f0
=
$(
echo
"
${
f3
}
"
|
sed
's/run3/run0/'
)
...
...
@@ -167,8 +167,8 @@ for f3 in $(find "${TEST_DIR}/run3" -name '*.h5' | sort -n); do
done
echo
' Running simulations from checkpoints using OpenCL and different datatypes...'
${
MPIRUN_EXECUTABLE
}
-np
1
"
${
PYTHON_EXECUTABLE
}
"
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-cp
fp64
-impl
opencl
-L
"
${
TEST_DIR
}
/checkpoint0.tar"
--dump-dir
"
${
TEST_DIR
}
/run6"
${
MPIRUN_EXECUTABLE
}
-np
1
"
${
PYTHON_EXECUTABLE
}
"
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-cp
fp32
-impl
opencl
-L
"
${
TEST_DIR
}
/checkpoint1.tar"
--dump-dir
"
${
TEST_DIR
}
/run7"
${
MPIRUN_EXECUTABLE
}
-np
1
${
PYTHON_EXECUTABLE
}
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-cp
fp64
-impl
opencl
-L
"
${
TEST_DIR
}
/checkpoint0.tar"
--dump-dir
"
${
TEST_DIR
}
/run6"
${
MPIRUN_EXECUTABLE
}
-np
1
${
PYTHON_EXECUTABLE
}
"
${
EXAMPLE_FILE
}
"
${
COMMON_OPTIONS
}
-cp
fp32
-impl
opencl
-L
"
${
TEST_DIR
}
/checkpoint1.tar"
--dump-dir
"
${
TEST_DIR
}
/run7"
echo
' Comparing solutions...'
for
f6
in
$(
find
"
${
TEST_DIR
}
/run6"
-name
'*.h5'
|
sort
-n
)
;
do
f7
=
$(
echo
"
${
f6
}
"
|
sed
's/run0/run7/'
)
...
...
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