Changeset a557a99 in sasmodels for sasmodels/core.py


Ignore:
Timestamp:
Sep 8, 2016 2:27:32 AM (8 years ago)
Author:
wojciech
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:
551398c
Parents:
c52f9da
Message:

A few fixes to make code cleaner and add PYOPENCL_CTX control

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/core.py

    rc52f9da ra557a99  
    2222from . import kerneldll 
    2323 
    24 if "SAS_OPENCL" in os.environ and os.environ["SAS_OPENCL"]=="None": 
     24if os.environ.get("SAS_OPENCL", "").lower() == "none": 
    2525    HAVE_OPENCL = False 
    2626else: 
     
    229229        platform = "dll" 
    230230 
     231    # if platform is None: 
     232    #     platform = "ocl" if model_info.opencl else "dll" 
     233    # if platform == "ocl" and not HAVE_OPENCL: 
     234    #     platform = "dll" 
     235 
    231236    # Check if type indicates dll regardless of which platform is given 
    232237    if dtype is not None and dtype.endswith('!'): 
Note: See TracChangeset for help on using the changeset viewer.