From 11aeddadae8ddec0aab01550cff4d0222e09cf12 Mon Sep 17 00:00:00 2001 From: Illia Silin <98187287+illsilin@users.noreply.github.com> Date: Wed, 8 Nov 2023 17:53:45 -0800 Subject: [PATCH] add linker script to QA builds (#1030) [ROCm/composable_kernel commit: 68f2b5e7c763c1525b01b32315c5e2d0a901ae27] --- Jenkinsfile | 2 +- script/hip_fatbin_insert | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 script/hip_fatbin_insert diff --git a/Jenkinsfile b/Jenkinsfile index 872e218428..505232de47 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -767,7 +767,7 @@ pipeline { } agent{ label rocmnode("gfx908 || gfx90a") } environment{ - setup_args = """ -DCMAKE_INSTALL_PREFIX=../install -DGPU_TARGETS="gfx908;gfx90a;gfx940;gfx941;gfx942" """ + setup_args = """ -DCMAKE_INSTALL_PREFIX=../install -DGPU_TARGETS="gfx908;gfx90a;gfx940;gfx941;gfx942" -DCMAKE_EXE_LINKER_FLAGS=" -L ${env.WORKSPACE}/script -T hip_fatbin_insert " """ execute_args = """ cd ../client_example && rm -rf build && mkdir build && cd build && cmake -D CMAKE_PREFIX_PATH="${env.WORKSPACE}/install;/opt/rocm" -DGPU_TARGETS="gfx908;gfx90a;gfx940;gfx941;gfx942" -D CMAKE_CXX_COMPILER="${build_compiler()}" .. && make -j """ } steps{ diff --git a/script/hip_fatbin_insert b/script/hip_fatbin_insert new file mode 100644 index 0000000000..7d834cbf56 --- /dev/null +++ b/script/hip_fatbin_insert @@ -0,0 +1,7 @@ +SECTIONS { + .hipFatBinSegment : { *(.hipFatBinSegment) } +} INSERT AFTER .bss + +SECTIONS { + .hip_fatbin : { *(.hip_fatbin) } +} INSERT AFTER .hipFatBinSegment