From 57fccdf79cb8b01cea549e72801c91c2bc34975e Mon Sep 17 00:00:00 2001 From: "GunaShekar, Ajay" Date: Fri, 13 Jun 2025 08:34:04 -0700 Subject: [PATCH] SWDEV-537473 - kernel path fix for windows (#286) [ROCm/hip-tests commit: 797c104b4dfe761988f549423e52628eb77329e5] --- projects/hip-tests/catch/include/hip_test_rtc.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/hip-tests/catch/include/hip_test_rtc.hh b/projects/hip-tests/catch/include/hip_test_rtc.hh index 11ef6a1656..3a468511af 100644 --- a/projects/hip-tests/catch/include/hip_test_rtc.hh +++ b/projects/hip-tests/catch/include/hip_test_rtc.hh @@ -35,6 +35,7 @@ THE SOFTWARE. #include "hip/hip_runtime_api.h" #include "hip_test_context.hh" +#define STRINGIFY(x) #x namespace HipTest { struct KernelArgument { @@ -107,7 +108,7 @@ inline std::vector getKernelCode(hiprtcProgram& rtcProgram) { */ inline hiprtcProgram compileRTC(std::string& rtcKernel, std::string& kernelNameExpression) { std::string fileName = mapKernelToFileName.at(rtcKernel); - std::string filePath{KERNELS_PATH + fileName}; + std::string filePath{STRINGIFY(KERNELS_PATH) + fileName}; INFO("Opening Kernel File: " << filePath); std::ifstream kernelFile{filePath};