Changeset fe77343 in sasmodels


Ignore:
Timestamp:
Sep 2, 2016 9:47:54 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:
880a2ed
Parents:
b6f3bbe
Message:

Implementing SAS_OPENCL variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/core.py

    rf49675c rfe77343  
    220220    # If opencl=False OpenCL is switched off 
    221221    # Finally one can force OpenCL calculation even if HAVE_OPENCL=False 
     222 
     223    if "SAS_OPENCL" in os.environ: 
     224        sasopencl = os.environ["SAS_OPENCL"] 
     225 
    222226    if platform is None: 
    223227        platform = "ocl" 
Note: See TracChangeset for help on using the changeset viewer.