diff --git a/CMakeLists.txt b/CMakeLists.txt index e6693470318..25ea5d3bb03 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -372,10 +372,11 @@ add_custom_command(TARGET clang_links POST_BUILD ) # install certain LLVM libraries needed by HIP -install(PROGRAMS $ +install(PROGRAMS $ $ + $ DESTINATION lib - COMPONENT llvm-project/llvm + COMPONENT llvm-project/llvm ) # force library install path to lib @@ -574,7 +575,7 @@ set(CPACK_DEBIAN_PACKAGE_SECTION "devel") set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${PROJECT_BINARY_DIR}/packaging/debian/postinst;${PROJECT_BINARY_DIR}/packaging/debian/prerm") -set(HCC_GENERAL_DEBIAN_DEP "coreutils, g++-multilib, gcc-multilib, findutils, libelf1, libpci3, file, +set(HCC_GENERAL_DEBIAN_DEP "coreutils, g++-multilib, gcc-multilib, findutils, libelf1, libpci3, file, libfile-basedir-perl, libfile-copy-recursive-perl, libfile-listing-perl, libfile-which-perl") # control the list of package dependency depending on whether this is an official release build. diff --git a/lib/clamp-device.in b/lib/clamp-device.in index 0824a0ad205..9ad8cfbcb12 100755 --- a/lib/clamp-device.in +++ b/lib/clamp-device.in @@ -219,10 +219,14 @@ fi $OPT $HCC_OPT -mtriple amdgcn-amd-amdhsa -mcpu=$AMDGPU_TARGET \ -load $LIB/LLVMSelectAcceleratorCode@CMAKE_SHARED_LIBRARY_SUFFIX@ \ -load $LIB/LLVMPromotePointerKernArgsToGlobal@CMAKE_SHARED_LIBRARY_SUFFIX@ \ + -load $LIB/LLVMPromoteConstant@CMAKE_SHARED_LIBRARY_SUFFIX@ \ -select-accelerator-code -sac-enable-function-calls=$AMDGPU_FUNC_CALLS \ -promote-pointer-kernargs-to-global \ + -promote-constant \ -infer-address-spaces \ -verify < $2.linked.bc -o $2.opt.bc +$OPT $HCC_OPT -mtriple amdgcn-amd-amdhsa -mcpu=$AMDGPU_TARGET \ + -verify < $2.opt.bc -o $2.opt.bc # error handling for HCC-specific opt passes RETVAL=$?