From aed6fb404c8cab332cf0ff0a6c909f4081a9799a Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Mon, 14 Aug 2023 21:26:49 +0530 Subject: [PATCH] SWDEV-402093 - Updated README to use AMDGPU_TARGETS=native to enable compiler autodetection (#378) Change-Id: I33a71d12b5b883eacac706725322bc13e0d57852 [ROCm/hip-tests commit: 30fcf2f17ce79dab5eae1bb6badc1a65d200a7ad] --- .../samples/2_Cookbook/18_cmake_hip_device/README.md | 6 +++++- .../hip-tests/samples/2_Cookbook/19_cmake_lang/README.md | 5 +++++ .../samples/2_Cookbook/21_cmake_hip_cxx_clang/README.md | 6 +++++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/projects/hip-tests/samples/2_Cookbook/18_cmake_hip_device/README.md b/projects/hip-tests/samples/2_Cookbook/18_cmake_hip_device/README.md index 5c4bb488d9..c65418017f 100644 --- a/projects/hip-tests/samples/2_Cookbook/18_cmake_hip_device/README.md +++ b/projects/hip-tests/samples/2_Cookbook/18_cmake_hip_device/README.md @@ -12,7 +12,11 @@ Note, users may need to add ADMGPU support as command line option, if test faile ``` CXX="$(hipconfig -l)"/clang++ cmake -DCMAKE_PREFIX_PATH=/opt/rocm -DAMDGPU_TARGETS="gfx1102" .. ``` - +To enable compiler auto detection of gpu users may need to add ADMGPU support as command line option, +if test failed to run, for example, +``` +CXX="$(hipconfig -l)"/clang++ cmake -DCMAKE_PREFIX_PATH=/opt/rocm -DAMDGPU_TARGETS=native .. +``` II. Test ``` diff --git a/projects/hip-tests/samples/2_Cookbook/19_cmake_lang/README.md b/projects/hip-tests/samples/2_Cookbook/19_cmake_lang/README.md index 284bec8655..c034c40ac3 100644 --- a/projects/hip-tests/samples/2_Cookbook/19_cmake_lang/README.md +++ b/projects/hip-tests/samples/2_Cookbook/19_cmake_lang/README.md @@ -19,6 +19,11 @@ Note, users may need to add AMD GPU support, if test failed, for example, ``` CXX="$(hipconfig -l)"/clang++ FC=$(which gfortran) cmake -DCMAKE_PREFIX_PATH=/opt/rocm -DAMDGPU_TARGETS="gfx1102" .. ``` +To enable compiler auto detection of gpu users may need to add ADMGPU support as command line option, +if test failed to run, for example, +``` +CXX="$(hipconfig -l)"/clang++ FC=$(which gfortran) cmake -DCMAKE_PREFIX_PATH=/opt/rocm -DAMDGPU_TARGETS=native .. +``` III. Test ``` ./test_fortran diff --git a/projects/hip-tests/samples/2_Cookbook/21_cmake_hip_cxx_clang/README.md b/projects/hip-tests/samples/2_Cookbook/21_cmake_hip_cxx_clang/README.md index a7d362a990..9ee4ec1c95 100644 --- a/projects/hip-tests/samples/2_Cookbook/21_cmake_hip_cxx_clang/README.md +++ b/projects/hip-tests/samples/2_Cookbook/21_cmake_hip_cxx_clang/README.md @@ -7,7 +7,11 @@ rm -rf *; CXX="$(hipconfig -l)"/amdclang++ cmake -DCMAKE_PREFIX_PATH=/opt/rocm .. make ``` - +To enable compiler auto detection of gpu users may need to add ADMGPU support as command line option, +if test failed to run, for example, +``` +CXX="$(hipconfig -l)"/amdclang++ cmake -DCMAKE_PREFIX_PATH=/opt/rocm -DAMDGPU_TARGETS=native .. +``` II. Test ```