Changeset 2e63860 in sasview for src/sas/sasgui/perspectives/fitting/gpu_options.py
- Timestamp:
- Nov 29, 2016 9:35:18 AM (8 years ago)
- Children:
- 4638f1d
- Parents:
- 9fdf302
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/gpu_options.py
r9fdf302 r2e63860 95 95 def _get_clinfo(self): 96 96 try: 97 #TODO: Is PYOPENCL_CTX setup up in this order? 97 98 import pyopencl as cl 98 devices = cl.get_platforms()[0].get_devices()99 clinfo = [dev.name for dev in devices]99 for platform in cl.get_platforms(): 100 clinfo = [device.name for device in platform.get_devices()] 100 101 clinfo.append("No OpenCL") 101 102 except:
Note: See TracChangeset
for help on using the changeset viewer.