- Timestamp:
- Dec 15, 2017 5:09:24 AM (7 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- b6b81a3
- Parents:
- 66285f5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/gpu_options.py
r66285f5 r42a6e02 8 8 ''' 9 9 10 import logging 10 11 import os 11 12 import sys 12 import warnings13 13 import wx 14 14 import sasmodels 15 15 from sas.sasgui.guiframe.documentation_window import DocumentationWindow 16 17 logger = logging.getLogger(__name__) 16 18 17 19 … … 168 170 platforms = cl.get_platforms() 169 171 except ImportError: 170 warnings.warn("Unable to import the pyopencl package. It may not \ 171 have been installed. If you wish to use OpenCL, try running pip \ 172 install --user pyopencl") 173 except cl.LogicError as e: 174 warnings.warn("Unable to fetch the OpenCL platforms. This likely \ 175 means that the opencl drivers for your system are not installed.") 176 warnings.warn(e) 172 logger.warn("Unable to import the pyopencl package. It may not " 173 "have been installed. If you wish to use OpenCL, try " 174 "running pip install --user pyopencl") 175 except cl.LogicError as err: 176 logger.warn("Unable to fetch the OpenCL platforms. This likely " 177 "means that the opencl drivers for your system are " 178 "not installed.") 179 logger.warn(err) 177 180 178 181 p_index = 0
Note: See TracChangeset
for help on using the changeset viewer.