Changeset 664c8e7 in sasmodels


Ignore:
Timestamp:
Feb 24, 2015 11:34:07 AM (10 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
7621d5a
Parents:
6137124
Message:

catch yet another opencl startup error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernelcl.py

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