MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / getMaxParallelThreads

Function getMaxParallelThreads

src/backend/opencl/platform.hpp:119–121  ·  view source on GitHub ↗

maximum nr of threads the device really can run in parallel, without scheduling

Source from the content-addressed store, hash-verified

117// maximum nr of threads the device really can run in parallel, without
118// scheduling
119inline unsigned getMaxParallelThreads(const cl::Device& device) {
120 return getComputeUnits(device) * 2048;
121}
122
123cl_device_type getDeviceType();
124

Callers 1

threadsMgtMethod · 0.70

Calls 1

getComputeUnitsFunction · 0.70

Tested by

no test coverage detected