Changeset e59f60a in sasmodels
- Timestamp:
- Jan 27, 2018 9:00:35 PM (7 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- f354e46
- Parents:
- 6dba2f0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/kernelcl.py
r6dba2f0 re59f60a 58 58 import numpy as np # type: ignore 59 59 60 import pyopencl as cl # type: ignore61 from pyopencl import mem_flags as mf62 from pyopencl.characterize import get_fast_inaccurate_build_options63 64 60 try: 65 61 if os.environ.get("SAS_OPENCL", "").lower() == "none": 66 62 HAVE_OPENCL = False 67 63 else: 64 import pyopencl as cl # type: ignore 65 from pyopencl import mem_flags as mf 66 from pyopencl.characterize import get_fast_inaccurate_build_options 68 67 # Ask OpenCL for the default context so that we know that one exists 69 68 cl.create_some_context(interactive=False)
Note: See TracChangeset
for help on using the changeset viewer.