Changeset a557a99 in sasmodels for sasmodels/kernelcl.py


Ignore:
Timestamp:
Sep 8, 2016 4:27:32 AM (4 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/kernelcl.py

    r880a2ed ra557a99  
    231231            #Setting PYOPENCL_CTX as a SAS_OPENCL to create cl context 
    232232            os.environ["PYOPENCL_CTX"] = os.environ["SAS_OPENCL"] 
     233        if 'PYOPENCL_CTX' in os.environ: 
    233234            self._create_some_context() 
    234235 
Note: See TracChangeset for help on using the changeset viewer.