Changeset 95f0cbb in sasview for src/sas/sasgui/perspectives/fitting/gpu_options.py
- Timestamp:
- Nov 30, 2016 8:28:51 AM (8 years ago)
- Children:
- c027106e
- Parents:
- 6a569b3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/gpu_options.py
r6a569b3 r95f0cbb 77 77 78 78 def _get_clinfo(self): 79 clinfo = [] 80 79 81 try: 80 82 import pyopencl as cl 81 clinfo = []82 83 for platform in cl.get_platforms(): 83 84 for device in platform.get_devices(): 84 85 clinfo.append(device.name) 85 clinfo.append("No OpenCL")86 86 except ImportError: 87 warnings.warn("pyopencl import failed") 88 clinfo = None 87 warnings.warn("pyopencl import failed. Please check installation") 88 89 clinfo.append("No OpenCL") 89 90 return clinfo 90 91
Note: See TracChangeset
for help on using the changeset viewer.