Skip to content

Commit 467fb48

Browse files
searlmc1emankov
authored andcommitted
merge amd-mainline into release/rocm-rel-6.1
[SWDEV-424205][P3] hipconvertinplace-perl.sh fails to run [SWDEV-446809][P2][ROCm QA][Mainline][G][QR] Observed "error: no member named 'vector' in namespace 'std'" compilation error in hipify-clang test Change-Id: I8e4e5123ec13a671220c0d163fbb03c80806a482
2 parents 6583ae5 + 6422f44 commit 467fb48

32 files changed

+1661
-1117
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ if (NOT HIPIFY_CLANG_TESTS_ONLY)
139139

140140
if(MSVC)
141141
target_link_libraries(hipify-clang PRIVATE version)
142-
target_compile_options(hipify-clang PRIVATE ${STD} /Od /GR- /EHs- /EHc-)
142+
target_compile_options(hipify-clang PRIVATE ${STD} /Od /GR- /EHs- /EHc- /MP)
143143
if((LLVM_PACKAGE_VERSION VERSION_EQUAL "18.0.0" OR LLVM_PACKAGE_VERSION VERSION_GREATER "18.0.0") AND MSVC_VERSION VERSION_GREATER "1919")
144144
target_compile_options(hipify-clang PRIVATE /Zc:preprocessor)
145145
endif()

bin/hipconvertinplace-perl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# (this is useful for testing improvements to the hipify-perl toolset).
1313

1414
SCRIPT_DIR="$(dirname "$(realpath "$0")")"
15-
PRIV_SCRIPT_DIR="$SCRIPT_DIR/../../libexec/hipify"
15+
PRIV_SCRIPT_DIR="$SCRIPT_DIR/../libexec/hipify"
1616
SEARCH_DIR=$1
1717
shift
1818
$SCRIPT_DIR/hipify-perl -inplace -print-stats "$@" `$PRIV_SCRIPT_DIR/findcode.sh $SEARCH_DIR`

bin/hipconvertinplace.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# preserves the existing directory structure.
88

99
SCRIPT_DIR="$(dirname "$(realpath "$0")")"
10-
PRIV_SCRIPT_DIR="$SCRIPT_DIR/../../libexec/hipify"
10+
PRIV_SCRIPT_DIR="$SCRIPT_DIR/../libexec/hipify"
1111
SEARCH_DIR=$1
1212

1313
hipify_args=''

bin/hipexamine-perl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
SCRIPT_DIR="$(dirname "$(realpath "$0")")"
10-
PRIV_SCRIPT_DIR="$SCRIPT_DIR/../../libexec/hipify"
10+
PRIV_SCRIPT_DIR="$SCRIPT_DIR/../libexec/hipify"
1111
SEARCH_DIR=$1
1212
shift
1313
$SCRIPT_DIR/hipify-perl -no-output -print-stats "$@" `$PRIV_SCRIPT_DIR/findcode.sh $SEARCH_DIR`

bin/hipexamine.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Generate CUDA->HIP conversion statistics for all the code files in the specified directory.
66

77
SCRIPT_DIR="$(dirname "$(realpath "$0")")"
8-
PRIV_SCRIPT_DIR="$SCRIPT_DIR/../../libexec/hipify"
8+
PRIV_SCRIPT_DIR="$SCRIPT_DIR/../libexec/hipify"
99
SEARCH_DIR=$1
1010

1111
hipify_args=''

bin/hipify-perl

Lines changed: 191 additions & 92 deletions
Large diffs are not rendered by default.

docs/hipify-clang.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ CMake 3.16.8, GNU C/C++ 9.2, Python 2.7.
426426

427427
Recommended build system requirements:
428428

429-
CMake 3.28.1, GNU C/C++ 13.2, Python 3.11.6.
429+
CMake 3.28.3, GNU C/C++ 13.2, Python 3.12.2.
430430

431431
Here is an example of building `hipify-clang` with testing support on `Ubuntu 23.10.01`:
432432

@@ -470,7 +470,7 @@ cmake
470470
-- - Binary path : /usr/llvm/17.0.6/dist/bin
471471
-- Linker detection: GNU ld
472472
-- ---- The below configuring for hipify-clang testing only ----
473-
-- Found Python: /usr/bin/python3.11 (found version "3.11.6") found components: Interpreter
473+
-- Found Python: /usr/bin/python3.12 (found version "3.12.2") found components: Interpreter
474474
-- Found lit: /usr/local/bin/lit
475475
-- Found FileCheck: /GIT/LLVM/trunk/dist/FileCheck
476476
-- Initial CUDA to configure:
@@ -506,7 +506,7 @@ LLVM 17.0.6 - will be used for testing
506506
x86_64 - Platform architecture
507507
Linux 6.5.0-15-generic - Platform OS
508508
64 - hipify-clang binary bitness
509-
64 - python 3.11.6 binary bitness
509+
64 - python 3.12.2 binary bitness
510510
===============================================================
511511
-- Testing: 102 tests, 12 threads --
512512
Testing Time: 6.70s
@@ -532,8 +532,8 @@ Total Discovered Tests: 102
532532
| 14.0.0 - 14.0.6 | 7.0 - 11.7.1 | 8.0.5 - 8.4.1 | 2017.15.9.57*, 2019.16.11.17, 2022.17.2.6 | 3.24.0 | 3.10.6 |
533533
| 15.0.0 - 15.0.7 | 7.0 - 11.8.0 | 8.0.5 - 8.8.1 | 2019.16.11.25, 2022.17.5.2 | 3.26.0 | 3.11.2 |
534534
| 16.0.0 - 16.0.6 | 7.0 - 12.2.2 | 8.0.5 - 8.9.5 | 2019.16.11.29, 2022.17.7.1 | 3.27.3 | 3.11.4 |
535-
| 17.0.1** 17.0.6 | 7.0 - 12.3.2 | 8.0.5 - 8.9.7 | 2019.16.11.32, 2022.17.8.3 | 3.28.1 | 3.12.1 |
536-
| 19.0.0git | 7.0 - 12.3.2 | 8.0.5 - 8.9.7 | 2019.16.11.32, 2022.17.8.3 | 3.28.1 | 3.12.1 |
535+
| 17.0.1** 17.0.6 | 7.0 - 12.3.2 | 8.0.5 - 8.9.7 | 2019.16.11.34, 2022.17.9.0 | 3.28.3 | 3.12.2 |
536+
| 19.0.0git | 7.0 - 12.3.2 | 8.0.5 - 8.9.7 | 2019.16.11.34, 2022.17.9.0 | 3.28.3 | 3.12.2 |
537537

538538
`*` LLVM 14.x.x is the latest major release supporting Visual Studio 2017.
539539
To build LLVM 14.x.x correctly by Visual Studio 2017, `-DLLVM_FORCE_USE_OLD_TOOLCHAIN=ON` should be added to a corresponding CMake command line.
@@ -586,7 +586,7 @@ cmake
586586
-- - LLVM Include path : D:/LLVM/17.0.6/dist/include
587587
-- - Binary path : D:/LLVM/17.0.6/dist/bin
588588
-- ---- The below configuring for hipify-clang testing only ----
589-
-- Found Python: C:/Users/TT/AppData/Local/Programs/Python/Python312/python.exe (found version "3.12.0") found components: Interpreter
589+
-- Found Python: C:/Users/TT/AppData/Local/Programs/Python/Python312/python.exe (found version "3.12.2") found components: Interpreter
590590
-- Found lit: C:/Users/TT/AppData/Local/Programs/Python/Python312/Scripts/lit.exe
591591
-- Found FileCheck: D:/LLVM/17.0.6/dist/bin/FileCheck.exe
592592
-- Initial CUDA to configure:

docs/sphinx/requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
rocm-docs-core==0.34.0
1+
rocm-docs-core==0.34.2

docs/sphinx/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ charset-normalizer==3.1.0
2626
# via requests
2727
click==8.1.3
2828
# via sphinx-external-toc
29-
cryptography==42.0.0
29+
cryptography==42.0.2
3030
# via pyjwt
3131
deprecated==1.2.13
3232
# via pygithub
@@ -100,7 +100,7 @@ requests==2.31.0
100100
# via
101101
# pygithub
102102
# sphinx
103-
rocm-docs-core==0.34.0
103+
rocm-docs-core==0.34.2
104104
# via -r requirements.in
105105
smmap==5.0.0
106106
# via gitdb

docs/supported_apis.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
# Supported CUDA APIs
22

3-
- [Runtime API](tables/CUDA_Runtime_API_functions_supported_by_HIP.md)
4-
- [Driver API](tables/CUDA_Driver_API_functions_supported_by_HIP.md)
5-
- [cuComplex API](tables/cuComplex_API_supported_by_HIP.md)
6-
- [Device API](tables/CUDA_Device_API_supported_by_HIP.md)
7-
- [RTC API](tables/CUDA_RTC_API_supported_by_HIP.md)
8-
- [cuBLAS](tables/CUBLAS_API_supported_by_HIP.md)
9-
- [cuRAND](tables/CURAND_API_supported_by_HIP.md)
10-
- [cuDNN](tables/CUDNN_API_supported_by_HIP.md)
11-
- [cuFFT](tables/CUFFT_API_supported_by_HIP.md)
12-
- [cuSPARSE](tables/CUSPARSE_API_supported_by_HIP.md)
13-
- [cuSOLVER](tables/CUSOLVER_API_supported_by_HIP.md)
14-
- [CUB](tables/CUB_API_supported_by_HIP.md)
3+
| **CUDA** | **HIP** | **ROC** | **HIP & ROC** |
4+
|:----------------|:---------------------------------------------------------------------|:---------------|:----------------------------|
5+
| Runtime API | [HIP API](tables/CUDA_Runtime_API_functions_supported_by_HIP.md) | | |
6+
| Driver API | [HIP API](tables/CUDA_Driver_API_functions_supported_by_HIP.md) | | |
7+
| Complex API | [HIP API](tables/cuComplex_API_supported_by_HIP.md) | | |
8+
| Device API | [HIP Device API](tables/CUDA_Device_API_supported_by_HIP.md) | | |
9+
| RTC API | [HIP RTC API](tables/CUDA_RTC_API_supported_by_HIP.md) | | |
10+
| BLAS API | [HIP BLAS API](tables/CUBLAS_API_supported_by_HIP.md) | [ROC BLAS API](tables/CUBLAS_API_supported_by_ROC.md) | [HIP + ROC BLAS API](tables/CUBLAS_API_supported_by_HIP_and_ROC.md) |
11+
| SPARSE API | [HIP SPARSE API](tables/CUSPARSE_API_supported_by_HIP.md) | [ROC SPARSE API](tables/CUSPARSE_API_supported_by_ROC.md) | [HIP + ROC SPARSE API](tables/CUSPARSE_API_supported_by_HIP_and_ROC.md) |
12+
| SOLVER API | [HIP SOLVER API](tables/CUSOLVER_API_supported_by_HIP.md) | | |
13+
| RAND API | [HIP RAND API](tables/CURAND_API_supported_by_HIP.md) | | |
14+
| FFT API | [HIP FFT API](tables/CUFFT_API_supported_by_HIP.md) | | |
15+
| DNN API | [HIP DNN API](tables/CUDNN_API_supported_by_HIP.md) | | |
16+
| CUB API | [HIP CUB API](tables/CUB_API_supported_by_HIP.md) | | |
1517

1618
To generate the above documentation with the actual information about all supported CUDA APIs in Markdown format, run `hipify-clang --md` with or without specifying the output directory (`-o`).

0 commit comments

Comments
 (0)