From c54d3b34ea0043354032e85c1e209e8dce1a8145 Mon Sep 17 00:00:00 2001 From: Karl W Schulz Date: Mon, 3 Jun 2024 11:03:55 -0500 Subject: [PATCH] change project language to HIP; identify tests as cmake subdir Signed-off-by: Karl W Schulz --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d4b3a8523b..b0fedca3a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,10 +27,12 @@ string(REGEX REPLACE "([0-9]+)\.([0-9]+)\.([0-9]+)(.*)" "\\1.\\2.\\3" OMNIPERF_V project( omniperf VERSION ${OMNIPERF_VERSION} - LANGUAGES C + LANGUAGES HIP DESCRIPTION "OmniPerf" HOMEPAGE_URL "https://github.com/ROCm/omniperf") +set(CMAKE_HIP_FLAGS_RELEASE "-O2") + include(ExternalProject) include(GNUInstallDirs) @@ -156,6 +158,8 @@ if(${GIT_CLONE}) endif() # Setup testing collateral +add_subdirectory(tests) + enable_testing() option(ENABLE_COVERAGE "Enable code coverage" OFF)