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

Function getDeviceType

src/backend/opencl/platform.cpp:392–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390size_t getHostMemorySize() { return common::getHostMemorySize(); }
391
392cl_device_type getDeviceType() {
393 const cl::Device& device = getDevice();
394 cl_device_type type = device.getInfo<CL_DEVICE_TYPE>();
395 return type;
396}
397
398bool OpenCLCPUOffload(bool forceOffloadOSX) {
399 static const bool offloadEnv = getEnvVar("AF_OPENCL_CPU_OFFLOAD") != "0";

Callers 3

OpenCLCPUOffloadFunction · 0.70
topkFunction · 0.70
passesJitHeuristicsFunction · 0.70

Calls 1

getDeviceFunction · 0.85

Tested by

no test coverage detected