Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions unified-runtime/source/adapters/offload/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
case UR_DEVICE_INFO_PLATFORM:
return ReturnValue(hDevice->Platform);
break;
case UR_DEVICE_INFO_BACKEND_RUNTIME_VERSION:
return ReturnValue((std::to_string(OL_VERSION_MAJOR) + "." +
std::to_string(OL_VERSION_MINOR) + "." +
std::to_string(OL_VERSION_PATCH))
.c_str());
case UR_DEVICE_INFO_PROFILE:
// This doesn't make sense for non-opencl devices, copy other backends and
// just return FULL_PROFILE
return ReturnValue("FULL_PROFILE");
case UR_DEVICE_INFO_MAX_COMPUTE_UNITS:
case UR_DEVICE_INFO_NUM_COMPUTE_UNITS:
olInfo = OL_DEVICE_INFO_NUM_COMPUTE_UNITS;
Expand Down Expand Up @@ -189,6 +198,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
case UR_DEVICE_INFO_VIRTUAL_MEMORY_SUPPORT:
case UR_DEVICE_INFO_MEM_CHANNEL_SUPPORT:
case UR_DEVICE_INFO_HOST_PIPE_READ_WRITE_SUPPORT:
case UR_DEVICE_INFO_ASYNC_BARRIER:
case UR_DEVICE_INFO_ESIMD_SUPPORT:
// TODO: Atomic queries in Offload
case UR_DEVICE_INFO_ATOMIC_64:
case UR_DEVICE_INFO_IMAGE_SRGB:
Expand Down
Loading