Changeset 87fce00 in sasmodels for sasmodels/kernelcl.py


Ignore:
Timestamp:
Feb 18, 2015 5:18:00 AM (9 years ago)
Author:
ajj
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:
3271e20, c5b7d07, 3a45c2c
Parents:
c95dc908
Message:

Ensuring that compare will run even if opencl is not installed. Results display will be labelled "opencl" but is actually "ctypes". This is a temporary fix which needs properly integrating. Do not use -ctypes flag if you don't have opencl, you will be comparing model execution with itself.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernelcl.py

    r250fa25 r87fce00  
    3030try: 
    3131    import pyopencl as cl 
    32 except ImportError,exc: 
     32except RuntimeError,exc: 
    3333    warnings.warn(str(exc)) 
    3434    raise RuntimeError("OpenCL not available") 
Note: See TracChangeset for help on using the changeset viewer.