From 0f46c63d41862d910bde1eac457734749d36c45d Mon Sep 17 00:00:00 2001 From: Mirza Halilcevic Date: Tue, 6 Feb 2024 20:39:04 +0530 Subject: [PATCH] EXSWHTEC-334 - Extend tests for warp shlf_up and shfl_down functions to support half-precision types #419 Change-Id: Ib10102dc36b7ff90c5cc4b486a297bb4f3eb8d68 [ROCm/hip-tests commit: 9f0265304b303a72f27e9634e1a2890f164ca2c7] --- projects/hip-tests/catch/unit/warp/CMakeLists.txt | 2 ++ projects/hip-tests/catch/unit/warp/warp_shfl_down.cc | 2 +- projects/hip-tests/catch/unit/warp/warp_shfl_up.cc | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/hip-tests/catch/unit/warp/CMakeLists.txt b/projects/hip-tests/catch/unit/warp/CMakeLists.txt index 87bb5b0ab1..df5fa974a7 100644 --- a/projects/hip-tests/catch/unit/warp/CMakeLists.txt +++ b/projects/hip-tests/catch/unit/warp/CMakeLists.txt @@ -1,5 +1,7 @@ # Common Tests - Test independent of all platforms set(TEST_SRC + warp_shfl_up.cc + warp_shfl_down.cc warp_shfl_xor.cc warp_shfl.cc warp_shfl_up.cc diff --git a/projects/hip-tests/catch/unit/warp/warp_shfl_down.cc b/projects/hip-tests/catch/unit/warp/warp_shfl_down.cc index d42a19c7d8..58ad8528e7 100644 --- a/projects/hip-tests/catch/unit/warp/warp_shfl_down.cc +++ b/projects/hip-tests/catch/unit/warp/warp_shfl_down.cc @@ -100,7 +100,7 @@ template class WarpShflDown : public WarpShflTest, * - Device supports warp shuffle */ TEMPLATE_TEST_CASE("Unit_Warp_Shfl_Down_Positive_Basic", "", int, unsigned int, long, unsigned long, - long long, unsigned long long, float, double) { + long long, unsigned long long, float, double, __half, __half2) { int device; hipDeviceProp_t device_properties; HIP_CHECK(hipGetDevice(&device)); diff --git a/projects/hip-tests/catch/unit/warp/warp_shfl_up.cc b/projects/hip-tests/catch/unit/warp/warp_shfl_up.cc index 201289f363..5c55c8a9b9 100644 --- a/projects/hip-tests/catch/unit/warp/warp_shfl_up.cc +++ b/projects/hip-tests/catch/unit/warp/warp_shfl_up.cc @@ -99,7 +99,7 @@ template class WarpShflUp : public WarpShflTest, T> { * - Device supports warp shuffle */ TEMPLATE_TEST_CASE("Unit_Warp_Shfl_Up_Positive_Basic", "", int, unsigned int, long, unsigned long, - long long, unsigned long long, float, double) { + long long, unsigned long long, float, double, __half, __half2) { int device; hipDeviceProp_t device_properties; HIP_CHECK(hipGetDevice(&device));