Changeset 9fac5f5 in sasmodels


Ignore:
Timestamp:
Mar 30, 2019 9:40:41 PM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master
Children:
8ed04ff, 1423ddb
Parents:
e15a822
Message:

kernelcl.reset_environment() returns a new environment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernelcl.py

    ra34b811 r9fac5f5  
    158158ENV = None 
    159159def reset_environment(): 
    160     # type: () -> None 
    161     """ 
    162     Call to create a new OpenCL context, such as after a change to SAS_OPENCL. 
     160    # type: () -> "GpuEnvironment" 
     161    """ 
     162    Return a new OpenCL context, such as after a change to SAS_OPENCL. 
    163163    """ 
    164164    global ENV 
    165165    ENV = GpuEnvironment() if use_opencl() else None 
    166  
     166    return ENV 
    167167 
    168168def environment(): 
Note: See TracChangeset for help on using the changeset viewer.