Skip to content

Commit

Permalink
hipify-clang:Set configurable install path
Browse files Browse the repository at this point in the history
ROCm release build has parameters that controll the install path.
If the parameter CPACK_INSTALL_PREFIX is not provided default to
/opt/rocm/hip

Change-Id: Ia383cacf9666897277288571fb337e97ee4ba0c0
  • Loading branch information
frepaul committed May 22, 2020
1 parent 58ee0d9 commit f3fbfe5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ if (MSVC AND MSVC_VERSION VERSION_LESS "1900")
return()
endif()

#Set configurable install path
set(CPACK_INSTALL_PREFIX "/opt/rocm/hip" CACHE PATH "Package Installation path for HIP")


find_package(LLVM REQUIRED)
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}:")
message(STATUS " - CMake module path: ${LLVM_CMAKE_DIR}")
Expand Down
2 changes: 1 addition & 1 deletion packaging/hipify-clang.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ install(DIRECTORY @HIPIFY_INSTALL_PATH@/include DESTINATION bin)
# Packaging steps
#############################
set(CPACK_SET_DESTDIR TRUE)
set(CPACK_INSTALL_PREFIX "/opt/rocm/hip")
set(CPACK_INSTALL_PREFIX @CPACK_INSTALL_PREFIX@)
set(CPACK_PACKAGE_NAME "hipify-clang")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "hipify-clang: a clang-based tool to translate CUDA source code into portable HIP C++ automatically")
set(CPACK_PACKAGE_VENDOR "Advanced Micro Devices, Inc.")
Expand Down

0 comments on commit f3fbfe5

Please sign in to comment.