From f115a3505c9f675e1bf37a010e351a7d7119c776 Mon Sep 17 00:00:00 2001 From: Konstantin Zhuravlyov Date: Thu, 2 Feb 2023 17:32:35 -0500 Subject: [PATCH] Compile image blit kernels with code object v4 Change-Id: I4b1923fe8f22dda1277409794d0856419228eceb --- runtime/hsa-runtime/image/blit_src/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/hsa-runtime/image/blit_src/CMakeLists.txt b/runtime/hsa-runtime/image/blit_src/CMakeLists.txt index f0b3d11e7d..21f998bf72 100644 --- a/runtime/hsa-runtime/image/blit_src/CMakeLists.txt +++ b/runtime/hsa-runtime/image/blit_src/CMakeLists.txt @@ -67,7 +67,8 @@ function(gen_kernel_bc TARGET_ID INPUT_FILE OUTPUT_FILE) separate_arguments(CLANG_ARG_LIST UNIX_COMMAND "-O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 - -target amdgcn-amd-amdhsa -mcpu=${TARGET_ID} -o ${OUTPUT_FILE} ${INPUT_FILE}") + -target amdgcn-amd-amdhsa -mcpu=${TARGET_ID} -mcode-object-version=4 + -o ${OUTPUT_FILE} ${INPUT_FILE}") ## Add custom command to produce a code object file. ## This depends on the kernel source file & compiler.