Skip to content

Commit a4735ea

Browse files
committed
merge amd-staging into amd-mainline
Change-Id: Id76e1dfe8797b47a62a3f1e88928cb0789103647
2 parents 15e8dcd + af601fe commit a4735ea

30 files changed

+3166
-1380
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Documentation for HIPIFY is available at
44
[https://rocmdocs.amd.com/projects/HIPIFY/en/latest/](https://rocmdocs.amd.com/projects/HIPIFY/en/latest/).
55

6-
## HIPIFY for ROCm 6.1.1
6+
## HIPIFY for ROCm 6.1.2
77

88
### Additions
99

CMakeLists.txt

Lines changed: 31 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ include(GNUInstallDirs)
77
option(HIPIFY_CLANG_TESTS "Build HIPIFY tests, if lit is installed" OFF)
88
option(HIPIFY_CLANG_TESTS_ONLY "Build HIPIFY tests only, if lit is installed and hipify-clang binary is already produced" OFF)
99
option(HIPIFY_INCLUDE_IN_HIP_SDK "Include HIPIFY in HIP SDK" OFF)
10+
option(HIPIFY_INSTALL_CLANG_HEADERS "Include clang headers in HIPIFY installation" ON)
1011

1112
if(HIPIFY_CLANG_TESTS OR HIPIFY_CLANG_TESTS_ONLY)
1213
set(HIPIFY_TEST "ON")
@@ -24,6 +25,7 @@ message(STATUS "HIPIFY config:")
2425
message(STATUS " - Build hipify-clang : ${HIPIFY_BUILD}")
2526
message(STATUS " - Test hipify-clang : ${HIPIFY_TEST}")
2627
message(STATUS " - Is part of HIP SDK : ${HIPIFY_INCLUDE_IN_HIP_SDK}")
28+
message(STATUS " - Install clang headers : ${HIPIFY_INSTALL_CLANG_HEADERS}")
2729

2830
if(HIPIFY_INCLUDE_IN_HIP_SDK)
2931
if(NOT WIN32)
@@ -175,28 +177,38 @@ if (NOT HIPIFY_CLANG_TESTS_ONLY)
175177
install(
176178
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin
177179
DESTINATION .
178-
USE_SOURCE_PERMISSIONS
179180
PATTERN "hipify-perl"
180-
PATTERN "*.sh")
181+
PATTERN "*.sh"
182+
PATTERN "findcode.sh" EXCLUDE
183+
PATTERN "finduncodep.sh" EXCLUDE)
184+
185+
set(HIPIFY_LIBEXEC_INSTALL_PATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBEXECDIR}/hipify")
186+
187+
install(
188+
PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/bin/findcode.sh
189+
PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/bin/finduncodep.sh
190+
DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/hipify)
181191

182192
# Headers are already included in HIP SDK, so skip those if including HIPIFY in HIP SDK.
183-
if(NOT HIPIFY_INCLUDE_IN_HIP_SDK)
184-
# Install all folders under clang/version/ in CMAKE_INSTALL_PREFIX path.
185-
install(
186-
DIRECTORY ${LLVM_DIR}/../../clang/${LIB_CLANG_RES}/
187-
DESTINATION .
188-
COMPONENT clang-resource-headers
189-
FILES_MATCHING
190-
PATTERN "*.h"
191-
PATTERN "*.modulemap"
192-
PATTERN "algorithm"
193-
PATTERN "complex"
194-
PATTERN "new"
195-
PATTERN "ppc_wrappers" EXCLUDE
196-
PATTERN "omp-tools.h" EXCLUDE
197-
PATTERN "omp.h" EXCLUDE
198-
PATTERN "ompt.h" EXCLUDE
199-
PATTERN "openmp_wrappers" EXCLUDE)
193+
if( HIPIFY_INSTALL_CLANG_HEADERS)
194+
if(NOT HIPIFY_INCLUDE_IN_HIP_SDK)
195+
# Install all folders under clang/version/ in CMAKE_INSTALL_PREFIX path.
196+
install(
197+
DIRECTORY ${LLVM_LIBRARY_DIRS}/clang/${LIB_CLANG_RES}/include/
198+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/hipify/${CMAKE_INSTALL_INCLUDEDIR}
199+
COMPONENT clang-resource-headers
200+
FILES_MATCHING
201+
PATTERN "*.h"
202+
PATTERN "*.modulemap"
203+
PATTERN "algorithm"
204+
PATTERN "complex"
205+
PATTERN "new"
206+
PATTERN "ppc_wrappers" EXCLUDE
207+
PATTERN "omp-tools.h" EXCLUDE
208+
PATTERN "omp.h" EXCLUDE
209+
PATTERN "ompt.h" EXCLUDE
210+
PATTERN "openmp_wrappers" EXCLUDE)
211+
endif()
200212
endif()
201213

202214
# install all folders under clang/version/ in CMAKE_INSTALL_PREFIX path

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2016 - 2022 Advanced Micro Devices, Inc.
1+
Copyright (c) 2024 Advanced Micro Devices, Inc.
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)