From 2f773d893c7cafdd791860ac94192e7a2c608dc5 Mon Sep 17 00:00:00 2001 From: Konstantin Zhuravlyov Date: Fri, 3 Feb 2023 16:16:38 -0500 Subject: [PATCH] Compile kernels with code object v4 Change-Id: I3dc05dff07888cea79ba0a51eaac17ed64f5fec0 [ROCm/rocprofiler commit: d9c9d39902788bd8069501cbe8f9873d61bc5fb8] --- projects/rocprofiler/bin/build_kernel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocprofiler/bin/build_kernel.sh b/projects/rocprofiler/bin/build_kernel.sh index 2007e7abaa..c7fd38d2b9 100755 --- a/projects/rocprofiler/bin/build_kernel.sh +++ b/projects/rocprofiler/bin/build_kernel.sh @@ -73,7 +73,7 @@ fi for GFXIP in $TGT_LIST ; do OBJ_PREF=$GFXIP OBJ_FILE="${OBJ_PREF}_${OBJ_NAME}.$SO_EXT" - $BIN_DIR/clang -cl-std=CL$OCL_VER -include $INC_DIR/opencl-c.h $BITCODE_OPTS -target amdgcn-amd-amdhsa -mcpu=$GFXIP $TEST_NAME.cl -o $DST_DIR/$OBJ_FILE + $BIN_DIR/clang -cl-std=CL$OCL_VER -include $INC_DIR/opencl-c.h $BITCODE_OPTS -target amdgcn-amd-amdhsa -mcpu=$GFXIP -mcode-object-version=4 $TEST_NAME.cl -o $DST_DIR/$OBJ_FILE echo "'$OBJ_FILE' generated" done