From 9689afcac73605a4beb2bf955209f8db56a20700 Mon Sep 17 00:00:00 2001 From: Rahul Manocha Date: Wed, 6 Dec 2023 18:33:48 +0000 Subject: [PATCH] SWDEV-431345 Cmake for hip sample 22 Change-Id: I9b1149b2e83b2f639882011d75b4fb9e2419ff8d [ROCm/hip-tests commit: c6d3505d6334a98825d9d4d20b3d864b6491dda5] --- .../samples/2_Cookbook/22_cmake_hip_lang/CMakeLists.txt | 2 ++ projects/hip-tests/samples/2_Cookbook/CMakeLists.txt | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/hip-tests/samples/2_Cookbook/22_cmake_hip_lang/CMakeLists.txt b/projects/hip-tests/samples/2_Cookbook/22_cmake_hip_lang/CMakeLists.txt index af9ff1b7ea..00e9523c0b 100644 --- a/projects/hip-tests/samples/2_Cookbook/22_cmake_hip_lang/CMakeLists.txt +++ b/projects/hip-tests/samples/2_Cookbook/22_cmake_hip_lang/CMakeLists.txt @@ -31,6 +31,8 @@ if( NOT DEFINED CMAKE_HIP_COMPILER_ROCM) set(CMAKE_HIP_COMPILER_ROCM_ROOT ${ROCM_PATH}) endif() +set(CMAKE_HIP_COMPILER ${ROCM_PATH}/llvm/bin/clang++) + project(cmake_hip_lang_support VERSION 1.0 DESCRIPTION "HIP Language Support with upstream CMake" LANGUAGES HIP) diff --git a/projects/hip-tests/samples/2_Cookbook/CMakeLists.txt b/projects/hip-tests/samples/2_Cookbook/CMakeLists.txt index e95986619c..f1e3214bdd 100644 --- a/projects/hip-tests/samples/2_Cookbook/CMakeLists.txt +++ b/projects/hip-tests/samples/2_Cookbook/CMakeLists.txt @@ -40,5 +40,5 @@ add_subdirectory(18_cmake_hip_device) add_subdirectory(19_cmake_lang) #add_subdirectory(20_hip_vulkan) add_subdirectory(21_cmake_hip_cxx_clang) -#add_subdirectory(22_cmake_hip_lang) -add_subdirectory(23_cmake_hiprtc) \ No newline at end of file +add_subdirectory(22_cmake_hip_lang) +add_subdirectory(23_cmake_hiprtc)