From c6cb19251b1b5328b940c86511acaf29e914415e Mon Sep 17 00:00:00 2001 From: "He, Wenju" Date: Thu, 29 Feb 2024 01:19:56 -0800 Subject: [PATCH] format --- source/adapters/level_zero/image.cpp | 6 ++++-- source/adapters/level_zero/memory.cpp | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/source/adapters/level_zero/image.cpp b/source/adapters/level_zero/image.cpp index 6756f3b672..0d986de0ad 100644 --- a/source/adapters/level_zero/image.cpp +++ b/source/adapters/level_zero/image.cpp @@ -354,8 +354,10 @@ ur_result_t ur2zeImageDesc(const ur_image_format_t *ImageFormat, ZeImageDesc.type = ZeImageType; ZeImageDesc.format = ZeFormatDesc; ZeImageDesc.width = ur_cast(ImageDesc->width); - ZeImageDesc.height = std::max(ur_cast(ImageDesc->height), (uint64_t)1); - ZeImageDesc.depth = std::max(ur_cast(ImageDesc->depth), (uint64_t)1); + ZeImageDesc.height = + std::max(ur_cast(ImageDesc->height), (uint64_t)1); + ZeImageDesc.depth = + std::max(ur_cast(ImageDesc->depth), (uint64_t)1); ZeImageDesc.arraylevels = ur_cast(ImageDesc->arraySize); ZeImageDesc.miplevels = ImageDesc->numMipLevel; diff --git a/source/adapters/level_zero/memory.cpp b/source/adapters/level_zero/memory.cpp index 0b6ffaaa89..3fb0d79a61 100644 --- a/source/adapters/level_zero/memory.cpp +++ b/source/adapters/level_zero/memory.cpp @@ -1559,8 +1559,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urMemImageCreateWithNativeHandle( return Res; } #else - std::ignore = ImageFormat; - std::ignore = ImageDesc; + std::ignore = ImageFormat; + std::ignore = ImageDesc; #endif // !NDEBUG UR_CALL(createUrMemFromZeImage(