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

fix opencl explore for meson configure on non opencl machines

parent caadb3a5
No related branches found
No related tags found
No related merge requests found
Pipeline #189219 canceled
...@@ -29,6 +29,15 @@ try: ...@@ -29,6 +29,15 @@ try:
import pyopencl as cl import pyopencl as cl
except ModuleNotFoundError: except ModuleNotFoundError:
cl = None cl = None
except ImportError:
print("""PyOpenCL import error turned into this Warning.
This can be produced in kind of 'cross-installing' if configure on machine where PyOpenCL is not usable (like frontal on clusters).
Otherwise, check your installation.
In case of 'cross-installing' OpenCL default id for platform and device my be set by default to -1.
User should change index at runtime exporting HYSOP_DEFAULT_DEVICE_ID and HYSOP_DEFAULT_PLATFORM_ID
""",file=sys.stderr)
cl = None
def size_human(s): def size_human(s):
......
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