Skip to content

Commit

Permalink
[UR][CUDA] Ifdef remaining CUDA 11 datatypes (intel#10922)
Browse files Browse the repository at this point in the history
intel#10691 missed these extra cases. This
PR adds the needed ifdefs
  • Loading branch information
hdelan authored Aug 30, 2023
1 parent 4ddb952 commit 242cb59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sycl/plugins/unified_runtime/ur/adapters/cuda/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,12 @@ cudaToUrImageChannelFormat(CUarray_format cuda_format,
UR_IMAGE_CHANNEL_TYPE_HALF_FLOAT);
CUDA_TO_UR_IMAGE_CHANNEL_TYPE(CU_AD_FORMAT_FLOAT,
UR_IMAGE_CHANNEL_TYPE_FLOAT);
#if CUDA_VERSION >= 11050
CUDA_TO_UR_IMAGE_CHANNEL_TYPE(CU_AD_FORMAT_UNORM_INT8X1,
UR_IMAGE_CHANNEL_TYPE_UNORM_INT8);
CUDA_TO_UR_IMAGE_CHANNEL_TYPE(CU_AD_FORMAT_UNORM_INT16X1,
UR_IMAGE_CHANNEL_TYPE_UNORM_INT16);
#endif
#undef MAP
default:
return UR_RESULT_ERROR_IMAGE_FORMAT_NOT_SUPPORTED;
Expand Down

0 comments on commit 242cb59

Please sign in to comment.