Boost logo

Boost :

Subject: Re: [boost] [compute] Some questions
From: Asbjørn (lordcrc_at_[hidden])
Date: 2014-12-23 05:12:41


On 23.12.2014 10:20, Andrey Semashev wrote:
> 6. Is it possible to discover device capabilities? E.g. the amount of
> local memory (total/used/free), execution units, vendor and device
> name?

Yes, see http://kylelutz.github.io/compute/boost/compute/device.html

Iterate over boost::compute::system::devices(), which returns a vector of all
the devices across all available OpenCL platforms, and examine the properties
you want.

Cheers
- Asbjørn


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk