Changeset fa26e78 in sasmodels


Ignore:
Timestamp:
Mar 6, 2019 3:15:31 PM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
36a2418
Parents:
19dc29e7
Message:

make sure cuda environment gets freed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernelcuda.py

    r3199b17 rfa26e78  
    141141            raise RuntimeError("SAS_OPENCL=None in environment") 
    142142    return ENV 
     143 
     144 
     145# PyTest is not freeing ENV, so make sure it gets freed. 
     146atexit.register(lambda: ENV.release() if ENV is not None else None) 
    143147 
    144148 
Note: See TracChangeset for help on using the changeset viewer.