Skip to content
Merged
Show file tree
Hide file tree
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
14 changes: 14 additions & 0 deletions unified-runtime/source/adapters/level_zero/image_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,13 @@ ur_result_t ze2urImageFormat(const ze_image_format_t &ZeImageFormat,
ChannelType = UR_IMAGE_CHANNEL_TYPE_UNSIGNED_INT16;
} else if (ZeImageFormatTypeSize == 32) {
ChannelType = UR_IMAGE_CHANNEL_TYPE_UNSIGNED_INT32;
} else {
UR_LOG(
ERR,
"ze2urImageFormat: unexpected image format type size for UINT: size "
"= {}",
ZeImageFormatTypeSize);
return UR_RESULT_ERROR_INVALID_VALUE;
}
break;
case ZE_IMAGE_FORMAT_TYPE_SINT:
Expand All @@ -181,6 +188,13 @@ ur_result_t ze2urImageFormat(const ze_image_format_t &ZeImageFormat,
ChannelType = UR_IMAGE_CHANNEL_TYPE_SIGNED_INT16;
} else if (ZeImageFormatTypeSize == 32) {
ChannelType = UR_IMAGE_CHANNEL_TYPE_SIGNED_INT32;
} else {
UR_LOG(
ERR,
"ze2urImageFormat: unexpected image format type size for SINT: size "
"= {}",
ZeImageFormatTypeSize);
return UR_RESULT_ERROR_INVALID_VALUE;
}
break;
case ZE_IMAGE_FORMAT_TYPE_UNORM:
Expand Down
2 changes: 1 addition & 1 deletion unified-runtime/source/adapters/level_zero/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ ur_result_t urKernelSuggestMaxCooperativeGroupCount(
(void)dynamicSharedMemorySize;
std::shared_lock<ur_shared_mutex> Guard(hKernel->Mutex);

ze_kernel_handle_t ZeKernel;
ze_kernel_handle_t ZeKernel = nullptr;
UR_CALL(getZeKernel(hDevice->ZeDevice, hKernel, &ZeKernel));

uint32_t WG[3];
Expand Down