Changeset db05c44 in sasview for run.py


Ignore:
Timestamp:
Aug 7, 2018 11:38:19 AM (6 years ago)
Author:
Torin Cooper-Bennun <torin.cooper-bennun@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
c0de493
Parents:
8a518285
Message:

fix OpenCL device never being set correctly; fix loading in default device from config (and setting to no OpenCL by default)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • run.py

    r2e27cdb6 rdb05c44  
    145145        import sas.qtgui.convertUI 
    146146 
     147    # initialize OpenCL setting 
     148    SAS_OPENCL = sas.get_custom_config().SAS_OPENCL 
     149    if SAS_OPENCL and "SAS_OPENCL" not in os.environ: 
     150        os.environ["SAS_OPENCL"] = SAS_OPENCL 
     151 
    147152 
    148153if __name__ == "__main__": 
Note: See TracChangeset for help on using the changeset viewer.