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

Function isHalfSupported

src/backend/oneapi/platform.cpp:387–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387bool isHalfSupported(unsigned device) {
388 DeviceManager& devMngr = DeviceManager::getInstance();
389
390 common::lock_guard_t lock(devMngr.deviceMutex);
391 return devMngr.mDevices[device]->has(sycl::aspect::fp16) &&
392 devMngr.mDevices[device]->get_info<sycl::info::device::native_vector_width_half>() != 0;
393}
394
395void devprop(char* d_name, char* d_platform, char* d_toolkit, char* d_compute) {
396 ONEAPI_NOT_SUPPORTED("");

Callers 1

half>Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected