From 084d25010b7840ff7f313aac9a73df9572cd9536 Mon Sep 17 00:00:00 2001 From: Vladislav Sytchenko Date: Sat, 20 Feb 2021 14:36:41 -0500 Subject: [PATCH] SWDEV-232428 - Enable device printf for Windows Change-Id: Id72cfc34cfcfcbcb459bd8d84979637eaf7947dd --- include/hip/amd_detail/device_functions.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/hip/amd_detail/device_functions.h b/include/hip/amd_detail/device_functions.h index 0e37e256df..c7cba34313 100644 --- a/include/hip/amd_detail/device_functions.h +++ b/include/hip/amd_detail/device_functions.h @@ -34,12 +34,12 @@ THE SOFTWARE. #include #include -#if __HIP_CLANG_ONLY__ && !_WIN32 +#if __HIP_CLANG_ONLY__ extern "C" __device__ int printf(const char *fmt, ...); #else template static inline __device__ void printf(const char* format, All... all) {} -#endif // __HIP_CLANG_ONLY__ && !_WIN32 +#endif // __HIP_CLANG_ONLY__ /* Integer Intrinsics