| 123 | } |
| 124 | |
| 125 | af_oneapi_platform getPlatformEnum(sycl::device dev) { |
| 126 | string pname = getPlatformName(dev); |
| 127 | if (verify_present(pname, "AMD")) |
| 128 | return AF_ONEAPI_PLATFORM_AMD; |
| 129 | else if (verify_present(pname, "NVIDIA")) |
| 130 | return AF_ONEAPI_PLATFORM_NVIDIA; |
| 131 | else if (verify_present(pname, "INTEL")) |
| 132 | return AF_ONEAPI_PLATFORM_INTEL; |
| 133 | else if (verify_present(pname, "APPLE")) |
| 134 | return AF_ONEAPI_PLATFORM_APPLE; |
| 135 | else if (verify_present(pname, "BEIGNET")) |
| 136 | return AF_ONEAPI_PLATFORM_BEIGNET; |
| 137 | else if (verify_present(pname, "POCL")) |
| 138 | return AF_ONEAPI_PLATFORM_POCL; |
| 139 | return AF_ONEAPI_PLATFORM_UNKNOWN; |
| 140 | } |
| 141 | |
| 142 | string getDeviceInfo() noexcept { |
| 143 | ostringstream info; |
no test coverage detected