Skip to content
Snippets Groups Projects
Commit 80d11660 authored by EXT Jean-Matthieu Etancelin's avatar EXT Jean-Matthieu Etancelin
Browse files

improve cmake finding python packages that depends on libOpenCL.so when...

improve cmake finding python packages that depends on libOpenCL.so when configuring on a frontend machine
parent 74e2f301
No related branches found
No related tags found
1 merge request!16MPI operators
......@@ -117,7 +117,7 @@ if(USE_CXX)
endif()
if(USE_FORTRAN)
set(LANGLIST ${LANGLIST} Fortran)
set(LANGLIST ${LANGLIST} C Fortran)
endif()
include(HysopVersion)
......@@ -148,12 +148,19 @@ find_python_module(colors REQUIRED) # ansicolor package
find_python_module(argparse_color_formatter REQUIRED)
find_python_module(primefac REQUIRED)
find_python_module(graph_tool REQUIRED)
find_python_module(pyopencl REQUIRED)
find_python_module(pyfftw REQUIRED)
find_python_module(gpyfft REQUIRED)
find_python_module(matplotlib REQUIRED)
find_python_module(backports.weakref REQUIRED) # python-backports.weakref
#find_python_module(backports.functools-lru-cache REQUIRED) # python-backports.functools-lru-cache
find_package( OpenCL )
if(${OpenCL_LIBRARY}) # Some opencl related python package fails to import on non OpenCL machines (cluster's frontend for instance)
find_python_module(pyopencl REQUIRED)
find_python_module(gpyfft REQUIRED)
else()
find_python_module(pyopencl )
find_python_module(gpyfft )
endif()
# --- MPI ---
if(USE_MPI)
find_package(MPI REQUIRED)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment