Changeset 6dba2f0 in sasmodels for sasmodels/core.py
- Timestamp:
- Jan 27, 2018 9:00:07 PM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- e59f60a
- Parents:
- 2ab1bac
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/core.py
ra69d8cd r6dba2f0 21 21 from . import mixture 22 22 from . import kernelpy 23 from . import kernelcl 23 24 from . import kerneldll 24 25 from . import custom 25 26 26 if os.environ.get("SAS_OPENCL", "").lower() == "none": 27 HAVE_OPENCL = False 28 else: 29 try: 30 from . import kernelcl 31 HAVE_OPENCL = True 32 except Exception: 33 HAVE_OPENCL = False 27 # Other modules look for HAVE_OPENCL in core, not in kernelcl. 28 HAVE_OPENCL = kernelcl.HAVE_OPENCL 34 29 35 30 CUSTOM_MODEL_PATH = os.environ.get('SAS_MODELPATH', "")
Note: See TracChangeset
for help on using the changeset viewer.