Changes in / [7621d5a:c48d0c6] in sasmodels


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernelcl.py

    r664c8e7 rf734e7d  
    3030try: 
    3131    import pyopencl as cl 
     32except ImportError,exc: 
     33    warnings.warn(str(exc)) 
     34    raise RuntimeError("OpenCL not available") 
     35 
     36try: 
    3237    context = cl.create_some_context(interactive=False) 
    3338    del context 
    34 except Exception,exc: 
     39except cl.RuntimeError, exc: 
    3540    warnings.warn(str(exc)) 
    36     raise RuntimeError("OpenCL not available") 
     41    raise RuntimeError("OpenCl not available") 
    3742 
    3843from pyopencl import mem_flags as mf 
Note: See TracChangeset for help on using the changeset viewer.