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