From cbb393719633f5ade47efbe8d2946e5f649c1f22 Mon Sep 17 00:00:00 2001 From: "Yaxun (Sam) Liu" Date: Thu, 16 Feb 2023 17:34:12 -0500 Subject: [PATCH] SWDEV-380145 - [GFX][CQE] Mathlibs and Blender build failed in both RT and CPL Jobs Remove --hip-device-lib-path from hip-config.cmake and let clang determine device lib path Change-Id: Ice009875624692bc2895020c9577b94ddbd6840f --- hipamd/hip-config.cmake.in | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/hipamd/hip-config.cmake.in b/hipamd/hip-config.cmake.in index 7c4fe7f936..b96803ee8e 100755 --- a/hipamd/hip-config.cmake.in +++ b/hipamd/hip-config.cmake.in @@ -206,16 +206,6 @@ if(HIP_COMPILER STREQUAL "clang") if (NOT compilePropIsSet) hip_add_interface_compile_flags(hip::device -x hip) - if (NOT EXISTS ${AMD_DEVICE_LIBS_PREFIX}/amdgcn/bitcode) - # This path is to support an older build of the device library - # TODO: To be removed in the future. - if(WIN32) - hip_add_interface_compile_flags(hip::device -fms-extensions -fms-compatibility) - hip_add_interface_compile_flags(hip::device --hip-device-lib-path=\"${HIP_PATH}/lib/bitcode\") - else() - hip_add_interface_compile_flags(hip::device --hip-device-lib-path=\"${AMD_DEVICE_LIBS_PREFIX}/lib\") - endif() - endif() endif() hip_add_interface_link_flags(hip::device --hip-link)