From 610611edd16555bce63b41e7273a2fbf1e1ce277 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 [ROCm/clr commit: 1f8bdcaf206edd42f317912db7a4711855093bc5] --- projects/clr/hipamd/include/hip/amd_detail/device_functions.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/clr/hipamd/include/hip/amd_detail/device_functions.h b/projects/clr/hipamd/include/hip/amd_detail/device_functions.h index 0e37e256df..c7cba34313 100644 --- a/projects/clr/hipamd/include/hip/amd_detail/device_functions.h +++ b/projects/clr/hipamd/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