From d4c3bcdc0f9ac78ec6d0985ee3edbab9f561d65d Mon Sep 17 00:00:00 2001 From: Pankaj Kumar Divedi Date: Wed, 16 Oct 2024 14:01:23 +0530 Subject: [PATCH] SWDEV-485275 - fix using CUID to host-only compilation Change-Id: I9f818e045090299714e77132e2a036a804ab1856 [ROCm/hip-tests commit: 754644f16e463d49ed3632b159eac710d09f7275] --- .../samples/2_Cookbook/16_assembly_to_executable/CMakeLists.txt | 2 +- .../samples/2_Cookbook/17_llvm_ir_to_executable/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/hip-tests/samples/2_Cookbook/16_assembly_to_executable/CMakeLists.txt b/projects/hip-tests/samples/2_Cookbook/16_assembly_to_executable/CMakeLists.txt index 5a5789ec16..de70fc1209 100644 --- a/projects/hip-tests/samples/2_Cookbook/16_assembly_to_executable/CMakeLists.txt +++ b/projects/hip-tests/samples/2_Cookbook/16_assembly_to_executable/CMakeLists.txt @@ -77,7 +77,7 @@ set(ALL_OPTION ALL ) endif() list(JOIN GPU_ARCH "," OFFLOAD_ARCH) -add_custom_target(src_to_asm ${ALL_OPTION} COMMAND ${HIPCC} -c -S -I${INCLUDES} --cuda-host-only -target x86_64-linux-gnu -o ${SQ_HOST_ASM} ${SRCS} +add_custom_target(src_to_asm ${ALL_OPTION} COMMAND ${HIPCC} -c -S -I${INCLUDES} --cuda-host-only -fuse-cuid=none -target x86_64-linux-gnu -o ${SQ_HOST_ASM} ${SRCS} COMMAND ${HIPCC} -c -S -I${INCLUDES} --cuda-device-only --offload-arch=${OFFLOAD_ARCH} ${SRCS}) diff --git a/projects/hip-tests/samples/2_Cookbook/17_llvm_ir_to_executable/CMakeLists.txt b/projects/hip-tests/samples/2_Cookbook/17_llvm_ir_to_executable/CMakeLists.txt index b074996f3d..f2142559ad 100644 --- a/projects/hip-tests/samples/2_Cookbook/17_llvm_ir_to_executable/CMakeLists.txt +++ b/projects/hip-tests/samples/2_Cookbook/17_llvm_ir_to_executable/CMakeLists.txt @@ -81,7 +81,7 @@ set(ALL_OPTION ALL ) endif() list(JOIN GPU_ARCH "," OFFLOAD_ARCH) -add_custom_target(src_to_ir ${ALL_OPTION} COMMAND ${HIPCC} -c -emit-llvm -I${INCLUDES} --cuda-host-only -target x86_64-linux-gnu -o ${SQ_HOST_BC} ${SRCS} +add_custom_target(src_to_ir ${ALL_OPTION} COMMAND ${HIPCC} -c -emit-llvm -I${INCLUDES} --cuda-host-only -fuse-cuid=none -target x86_64-linux-gnu -o ${SQ_HOST_BC} ${SRCS} COMMAND ${HIPCC} -c -emit-llvm -I${INCLUDES} --cuda-device-only --offload-arch=${OFFLOAD_ARCH} ${SRCS}) # Target for BC to LL