From 3e2aaf7ec6e221762a217e44b57cfb0abc4ee259 Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Fri, 1 Apr 2022 09:02:20 +0530 Subject: [PATCH] SWDEV-308763 - Update hiprtc tests to link with hiprtc lib (#2575) hiprtc is made into a separate lib and hence tests should link with it explicitly during compilation Also, updates the hiprtc programming guide Change-Id: Ie1f9d7250d4a8622b77ef92938fc0decbaeb72f9 [ROCm/hip-tests commit: 7d45f699fc94516c458ee9b24f0ba8dd24719e50] --- projects/hip-tests/catch/unit/rtc/CMakeLists.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/projects/hip-tests/catch/unit/rtc/CMakeLists.txt b/projects/hip-tests/catch/unit/rtc/CMakeLists.txt index 6a026cc88d..17eb0baa84 100644 --- a/projects/hip-tests/catch/unit/rtc/CMakeLists.txt +++ b/projects/hip-tests/catch/unit/rtc/CMakeLists.txt @@ -1,16 +1,23 @@ -# AMD Tests +# Common Tests - Test independent of all platforms set(TEST_SRC saxpy.cc warpsize.cc ) +# AMD only tests +set(AMD_TEST_SRC + customOptions.cc +) + if(HIP_PLATFORM MATCHES "nvidia") hip_add_exe_to_target(NAME RTC TEST_SRC ${TEST_SRC} TEST_TARGET_NAME build_tests LINKER_LIBS nvrtc) elseif(HIP_PLATFORM MATCHES "amd") + set(TEST_SRC ${TEST_SRC} ${AMD_TEST_SRC}) hip_add_exe_to_target(NAME RTC TEST_SRC ${TEST_SRC} - TEST_TARGET_NAME build_tests) + TEST_TARGET_NAME build_tests + LINKER_LIBS hiprtc) endif()