Skip to content
Snippets Groups Projects
Commit f856078a authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Don't require DeviceTopologyAmd to be present

parent b5631879
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ import sys ...@@ -51,7 +51,7 @@ import sys
_PYPY = "__pypy__" in sys.builtin_module_names _PYPY = "__pypy__" in sys.builtin_module_names
from pyopencl._cl import ( # noqa from pyopencl._cl import ( # noqa: F401
get_cl_header_version, get_cl_header_version,
program_kind, program_kind,
status_code, status_code,
...@@ -148,9 +148,13 @@ from pyopencl._cl import ( # noqa ...@@ -148,9 +148,13 @@ from pyopencl._cl import ( # noqa
Image, Image,
Sampler, Sampler,
DeviceTopologyAmd,
) )
try:
from pyopencl._cl import DeviceTopologyAmd # noqa: F401
except ImportError:
pass
if not _PYPY: if not _PYPY:
# FIXME: Add back to default set when pypy support catches up # FIXME: Add back to default set when pypy support catches up
from pyopencl._cl import ( # noqa from pyopencl._cl import ( # noqa
......
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