Changeset 2e63860 in sasview


Ignore:
Timestamp:
Nov 29, 2016 9:35:18 AM (7 years ago)
Author:
wojciech
Children:
4638f1d
Parents:
9fdf302
Message:

Calling more than on platform

File:
1 edited

Legend:

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

    r9fdf302 r2e63860  
    9595    def _get_clinfo(self): 
    9696        try: 
     97            #TODO: Is PYOPENCL_CTX setup up in this order? 
    9798            import pyopencl as cl 
    98             devices = cl.get_platforms()[0].get_devices() 
    99             clinfo = [dev.name for dev in devices] 
     99            for platform in cl.get_platforms(): 
     100                clinfo = [device.name for device in platform.get_devices()] 
    100101            clinfo.append("No OpenCL") 
    101102        except: 
Note: See TracChangeset for help on using the changeset viewer.