From 6fbcc0726f8995f955c455349663312343c6064e Mon Sep 17 00:00:00 2001 From: "Belton-Schure, Aidan" Date: Tue, 10 Jun 2025 18:22:50 +0100 Subject: [PATCH] SWDEV-482125 - fix Unit_Rtc_MathFunctions_header (#270) --- catch/include/hip_test_common.hh | 1 + catch/unit/rtc/hiprtc_MathFunctions_HeaderTst.cc | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/catch/include/hip_test_common.hh b/catch/include/hip_test_common.hh index 86fc4d8836..694413ba60 100644 --- a/catch/include/hip_test_common.hh +++ b/catch/include/hip_test_common.hh @@ -23,6 +23,7 @@ THE SOFTWARE. #pragma once #pragma clang diagnostic ignored "-Wsign-compare" #include "hip_test_context.hh" +#include "hip_test_rtc.hh" #include #include diff --git a/catch/unit/rtc/hiprtc_MathFunctions_HeaderTst.cc b/catch/unit/rtc/hiprtc_MathFunctions_HeaderTst.cc index 84f5524c97..c533985738 100644 --- a/catch/unit/rtc/hiprtc_MathFunctions_HeaderTst.cc +++ b/catch/unit/rtc/hiprtc_MathFunctions_HeaderTst.cc @@ -37,10 +37,10 @@ static constexpr auto mathFuntn_string { R"( extern "C" __global__ void mathFuntn(float *res) { - res[0] = (amd_mixed_dot((short2)10, (short2)20, (int)30, 1) == 430); - res[1] = (amd_mixed_dot((ushort2)10, (ushort2)20, (uint)30, 1) == 430); + res[0] = (amd_mixed_dot(short2{10, 10}, short2{20, 20}, (int)30, 1) == 430); + res[1] = (amd_mixed_dot(ushort2{10, 10}, ushort2{20, 20}, (uint)30, 1) == 430); res[2] = (amd_mixed_dot((char)10, (char)20, (int)30, 1) == 6); - res[3] = (amd_mixed_dot((uchar4)'a', (uchar4)'b', (uint)30, 1) == 38054); + res[3] = (amd_mixed_dot(uchar4{'a', 'a', 'a', 'a'}, uchar4{'b', 'b', 'b', 'b'}, (uint)30, 1) == 38054); res[4] = (amd_mixed_dot(10, 20, 30, 1) == 6); res[5] = (amd_mixed_dot((uint)10, (uint)20, (uint)30, 1) == 70); }