| 385 | } |
| 386 | |
| 387 | bool 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 | |
| 395 | void devprop(char* d_name, char* d_platform, char* d_toolkit, char* d_compute) { |
| 396 | ONEAPI_NOT_SUPPORTED(""); |