MCPcopy Create free account
hub / github.com/boostorg/compute / platform_count

Method platform_count

include/boost/compute/system.hpp:199–204  ·  view source on GitHub ↗

Returns the number of compute platforms on the system.

Source from the content-addressed store, hash-verified

197
198 /// Returns the number of compute platforms on the system.
199 static size_t platform_count()
200 {
201 cl_uint count = 0;
202 clGetPlatformIDs(0, 0, &count);
203 return static_cast<size_t>(count);
204 }
205
206private:
207 /// \internal_

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected