From 30b67d88c6701859af753e7db830ed702a1b899f Mon Sep 17 00:00:00 2001 From: "Larsen, Steffen" Date: Wed, 8 May 2024 05:34:31 -0700 Subject: [PATCH] [CUDA] Add back device info enums after merge mistake https://github.com/oneapi-src/unified-runtime/pull/1400 incorrectly removed some device info enumerator cases due to a fault merge conflict resolution. This commit adds them back. Signed-off-by: Larsen, Steffen --- source/adapters/cuda/device.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/source/adapters/cuda/device.cpp b/source/adapters/cuda/device.cpp index 4758d6286b..17c2d690d3 100644 --- a/source/adapters/cuda/device.cpp +++ b/source/adapters/cuda/device.cpp @@ -925,6 +925,30 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice, case UR_DEVICE_INFO_CUBEMAP_SEAMLESS_FILTERING_SUPPORT_EXP: { // CUDA supports cubemap seamless filtering. return ReturnValue(true); + } + case UR_DEVICE_INFO_BINDLESS_SAMPLED_IMAGE_FETCH_1D_USM_EXP: { + // CUDA does support fetching 1D USM sampled image data. + return ReturnValue(true); + } + case UR_DEVICE_INFO_BINDLESS_SAMPLED_IMAGE_FETCH_1D_EXP: { + // CUDA does not support fetching 1D non-USM sampled image data. + return ReturnValue(false); + } + case UR_DEVICE_INFO_BINDLESS_SAMPLED_IMAGE_FETCH_2D_USM_EXP: { + // CUDA does support fetching 2D USM sampled image data. + return ReturnValue(true); + } + case UR_DEVICE_INFO_BINDLESS_SAMPLED_IMAGE_FETCH_2D_EXP: { + // CUDA does support fetching 2D non-USM sampled image data. + return ReturnValue(true); + } + case UR_DEVICE_INFO_BINDLESS_SAMPLED_IMAGE_FETCH_3D_USM_EXP: { + // CUDA does not support 3D USM sampled textures + return ReturnValue(false); + } + case UR_DEVICE_INFO_BINDLESS_SAMPLED_IMAGE_FETCH_3D_EXP: { + // CUDA does support fetching 3D non-USM sampled image data. + return ReturnValue(true); } case UR_DEVICE_INFO_TIMESTAMP_RECORDING_SUPPORT_EXP: { // CUDA supports recording timestamp events.