Changeset 4638f1d in sasview for src/sas/sasgui/perspectives


Ignore:
Timestamp:
Nov 29, 2016 9:47:08 AM (8 years ago)
Author:
wojciech
Children:
a9279cc
Parents:
2e63860
Message:

Changing clinfo setup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/gpu_options.py

    r2e63860 r4638f1d  
    9797            #TODO: Is PYOPENCL_CTX setup up in this order? 
    9898            import pyopencl as cl 
     99            clinfo = [] 
    99100            for platform in cl.get_platforms(): 
    100                 clinfo = [device.name for device in platform.get_devices()] 
     101                for device in platform.get_devices(): 
     102                    clinfo.append(device.name) 
    101103            clinfo.append("No OpenCL") 
    102104        except: 
Note: See TracChangeset for help on using the changeset viewer.