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
96e4bf46
Commit
96e4bf46
authored
4 years ago
by
Jean-Baptiste Keck
Browse files
Options
Downloads
Patches
Plain Diff
update cmakelists.txt python dependency checks
parent
ba643618
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!24
Resolve "Add python3.x support"
,
!15
WIP: Resolve "HySoP with tasks"
Pipeline
#52318
passed
4 years ago
Stage: env
Stage: configure
Stage: build
Stage: install
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+19
-7
19 additions, 7 deletions
CMakeLists.txt
ci/scripts/test.sh
+11
-6
11 additions, 6 deletions
ci/scripts/test.sh
with
30 additions
and
13 deletions
CMakeLists.txt
+
19
−
7
View file @
96e4bf46
...
...
@@ -132,30 +132,42 @@ include(FindPythonModule)
# - python packages -
find_python_module
(
numpy REQUIRED
)
find_python_module
(
scipy REQUIRED
)
find_python_module
(
h5py REQUIRED
)
find_python_module
(
sympy REQUIRED
)
find_python_module
(
h5py REQUIRED
)
find_python_module
(
psutil REQUIRED
)
find_python_module
(
cpuinfo REQUIRED
)
find_python_module
(
gmpy2 REQUIRED
)
find_python_module
(
editdistance REQUIRED
)
find_python_module
(
portalocker REQUIRED
)
find_python_module
(
tee REQUIRED
)
find_python_module
(
colors REQUIRED
)
# ansicolor package
find_python_module
(
argparse_color_formatter REQUIRED
)
find_python_module
(
colors REQUIRED
)
# corresponds ansicolor package
find_python_module
(
primefac REQUIRED
)
find_python_module
(
networkx REQUIRED
)
find_python_module
(
pyfftw REQUIRED
)
find_python_module
(
matplotlib OPTIONAL
)
find_python_module
(
pyvis OPTIONAL
)
find_python_module
(
zarr REQUIRED
)
find_python_module
(
numcodecs REQUIRED
)
find_python_module
(
jsonpickle REQUIRED
)
find_python_module
(
argparse_color_formatter REQUIRED
)
find_python_module
(
numba OPTIONAL
)
# c++ jit compiler, required for CPU spectral filters
find_python_module
(
hptt OPTIONAL
)
# high performance cpu tensor transpose (fallback to numpy)
find_python_module
(
flint OPTIONAL
)
# high performance linear system solver (fallback to sympy)
find_python_module
(
tbb OPTIONAL
)
# additional numba threading backend (fallback to pthreads)
find_python_module
(
mkl_fft OPTIONAL
)
# additional fft backend, faster then FFTW, faster then clFFT on CPU OpenCL platforms.
find_python_module
(
pycairo OPTIONAL
)
# additional plotting backend
find_python_module
(
matplotlib OPTIONAL
)
# required for general plots
find_python_module
(
pyvis OPTIONAL
)
# required for graph plots
find_python_module
(
memory_tempfile OPTIONAL
)
# enable in memory HDF5 I/O to call paraview during simulation
# Some opencl related python package fails to import on non OpenCL machines (cluster's frontend for instance)
find_package
(
OpenCL
)
if
(
${
OpenCL_LIBRARY
}
)
find_python_module
(
pyopencl REQUIRED
)
find_python_module
(
mako REQUIRED
)
find_python_module
(
gpyfft REQUIRED
)
else
()
find_python_module
(
pyopencl
)
find_python_module
(
gpyfft
)
find_python_module
(
pyopencl OPTIONAL
)
find_python_module
(
mako OPTIONAL
)
find_python_module
(
gpyfft OPTIONAL
)
endif
()
# --- MPI ---
...
...
This diff is collapsed.
Click to expand it.
ci/scripts/test.sh
+
11
−
6
View file @
96e4bf46
...
...
@@ -66,14 +66,11 @@ if [ "${HAS_CACHE_DIR}" = true ]; then
mkdir
-p
"
${
CACHE_DIR
}
"
fi
# Environment variables
export
PYTHONPATH
=
"
${
INSTALL_DIR
}
/lib/python3.8/site-packages:
${
INSTALL_DIR
}
"
export
MPLBACKEND
=
'cairo'
export
HYSOP_VERBOSE
=
0
export
HYSOP_DEBUG
=
0
export
HYSOP_PROFILE
=
0
export
HYSOP_KERNEL_DEBUG
=
0
export
HYSOP_TRACE_WARNINGS
=
1
export
PYTHONHASHSEED
=
42
# get consistent hashes accross MPI processes
export
PYOPENCL_COMPILER_OUTPUT
=
0
export
MPLBACKEND
=
'cairo'
# OpenMPI specific variables
export
OMPI_ALLOW_RUN_AS_ROOT
=
1
...
...
@@ -81,6 +78,14 @@ export OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
export
OMPI_MCA_rmaps_base_oversubscribe
=
1
export
OMPI_MCA_btl_vader_single_copy_mechanism
=
none
# see https://github.com/open-mpi/ompi/issues/4948
# HySoP specific variables
export
HYSOP_VERBOSE
=
0
export
HYSOP_DEBUG
=
0
export
HYSOP_PROFILE
=
0
export
HYSOP_KERNEL_DEBUG
=
0
export
HYSOP_TRACE_WARNINGS
=
1
echo
"Trying to load hysop module:"
${
PYTHON_EXECUTABLE
}
-c
'import hysop; print(hysop)'
echo
"module import successful !"
...
...
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