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 ```