Skip to content

Commit ebd56ad

Browse files
committed
merge amd-mainline into release/rocm-rel-6.1
for ROCm HIP 6.1.1 Change-Id: I6381e0474db2003501aae5d7faf08145da701e1c
2 parents 467fb48 + c66c1f2 commit ebd56ad

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+3319
-2289
lines changed

CHANGELOG.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@
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
7+
8+
### Additions
9+
10+
* LLVM 18.1.2 support
11+
* cuDNN 9.0.0 support
12+
* New options:
13+
* `--clang-resource-directory` to specify the clang resource path - the path to the parent folder for the `include` folder that
14+
contains `__clang_cuda_runtime_wrapper.h` and other header files used during the hipification process
15+
16+
### Fixes
17+
18+
* Clang resource files used during hipification are now searchable and also can be specified by the `--clang-resource-directory` option
19+
620
## HIPIFY for ROCm 6.1.0
721

822
### Additions
@@ -13,11 +27,11 @@ Documentation for HIPIFY is available at
1327
* Full `hipSOLVER` support
1428
* Full `rocSPARSE` support
1529
* New options:
16-
* `--amap` to hipify as much as possible, ignoring '--default-preprocessor' behavior
30+
* `--amap` to hipify as much as possible, ignoring `--default-preprocessor` behavior
1731

1832
### Fixes
1933

20-
* Do not rewrite tokens in code blocks skipped by Preprocessor (under the '--default-preprocessor' option)
34+
* Code blocks skipped by the Preprocessor are not hipified anymore under the `--default-preprocessor` option
2135

2236
## HIPIFY for ROCm 6.0.2
2337

@@ -53,7 +67,7 @@ Documentation for HIPIFY is available at
5367
* In separate files: `hipify-clang --md --doc-format=full --doc-roc=separate`
5468
* In one file: `hipify-clang --md --doc-format=full --doc-roc=joint`
5569
* New options:
56-
* `--use-hip-data-types` (Use 'hipDataType' instead of 'hipblasDatatype_t' or 'rocblas_datatype')
70+
* `--use-hip-data-types` (Use `hipDataType` instead of `hipblasDatatype_t` or `rocblas_datatype`)
5771
* `--doc-roc=\<value\>` (ROC documentation generation: `skip` (default), `separate`, and `joint`; the
5872
`--md` or `--csv` option must be included)
5973

CMakeLists.txt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ if (NOT HIPIFY_CLANG_TESTS_ONLY)
161161
else()
162162
set(LIB_CLANG_RES ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH})
163163
endif()
164-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} -DHIPIFY_CLANG_RES=\\\"${LLVM_LIBRARY_DIRS}/clang/${LIB_CLANG_RES}\\\" ${addr_var}")
164+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} -DLIB_CLANG_RES=${LIB_CLANG_RES} ${addr_var}")
165165

166166
set(INSTALL_PATH_DOC_STRING "hipify-clang Installation Path")
167167
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
@@ -193,6 +193,9 @@ if (NOT HIPIFY_CLANG_TESTS_ONLY)
193193
PATTERN "complex"
194194
PATTERN "new"
195195
PATTERN "ppc_wrappers" EXCLUDE
196+
PATTERN "omp-tools.h" EXCLUDE
197+
PATTERN "omp.h" EXCLUDE
198+
PATTERN "ompt.h" EXCLUDE
196199
PATTERN "openmp_wrappers" EXCLUDE)
197200
endif()
198201

@@ -244,6 +247,8 @@ if(HIPIFY_CLANG_TESTS OR HIPIFY_CLANG_TESTS_ONLY)
244247

245248
message(STATUS "---- The below configuring for hipify-clang testing only ----")
246249

250+
set (HIPIFY_CLANG_RES "${LLVM_LIBRARY_DIRS}/clang/${LIB_CLANG_RES}")
251+
247252
if(${CMAKE_VERSION} VERSION_LESS "3.27.0")
248253
find_package(PythonInterp 2.7 REQUIRED)
249254
else()
@@ -342,16 +347,20 @@ if(HIPIFY_CLANG_TESTS OR HIPIFY_CLANG_TESTS_ONLY)
342347
${CMAKE_CURRENT_BINARY_DIR}/tests/lit.site.cfg
343348
@ONLY)
344349

350+
if(NOT LIT_ARGS)
351+
set(LIT_ARGS -v)
352+
endif()
353+
345354
if(HIPIFY_CLANG_TESTS_ONLY)
346355
add_lit_testsuite(test-hipify "Running HIPIFY regression tests"
347356
${CMAKE_CURRENT_LIST_DIR}/tests
348357
PARAMS site_config=${CMAKE_CURRENT_BINARY_DIR}/tests/lit.site.cfg
349-
ARGS -v)
358+
ARGS ${LIT_ARGS})
350359
else()
351360
add_lit_testsuite(test-hipify "Running HIPIFY regression tests"
352361
${CMAKE_CURRENT_LIST_DIR}/tests
353362
PARAMS site_config=${CMAKE_CURRENT_BINARY_DIR}/tests/lit.site.cfg
354-
ARGS -v
363+
ARGS ${LIT_ARGS}
355364
DEPENDS hipify-clang)
356365
endif()
357366

README.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,6 @@
33
HIPIFY is a set of tools that you can use to automatically translate CUDA source code into portable
44
[HIP](https://github.com/ROCm/HIP) C++.
55

6-
## Table of contents
7-
8-
<!-- toc -->
9-
10-
* [hipify-clang](./docs/hipify-clang.md#hipify-clang)
11-
* [Dependencies](./docs/hipify-clang.md#hipify-clang-dependencies)
12-
* [Usage](./docs/hipify-clang.md#hipify-clang-usage)
13-
* [Building](./docs/hipify-clang.md#hipify-clang-building)
14-
* [Testing](./docs/hipify-clang.md#hipify-clang-testing)
15-
* [Linux](./docs/hipify-clang.md#hipify-clang-linux-testing)
16-
* [Windows](./docs/hipify-clang.md#hipify-clang-windows-testing)
17-
* [hipify-perl](./docs/hipify-perl.md#hipify-perl)
18-
* [Usage](./docs/hipify-perl.md#hipify-perl-usage)
19-
* [Building](./docs/hipify-perl.md#hipify-perl-building)
20-
* Related: [hipify_torch](https://github.com/ROCmSoftwarePlatform/hipify_torch)
21-
* [Supported CUDA APIs](./docs/supported_apis.md#supported-cuda-apis)
22-
* [Documentation](#documentation)
23-
24-
<!-- tocstop -->
25-
266
## Documentation
277

288
Documentation for HIPIFY is available at

0 commit comments

Comments
 (0)