From ca51795efd36ff643e9bee0e2b49149a60c1cbfa Mon Sep 17 00:00:00 2001 From: Aryan Salmanpour Date: Fri, 17 Apr 2020 01:03:24 -0400 Subject: [PATCH] disable printf on hip-clang on Windows (#2021) [ROCm/clr commit: 08147681d0b395371ba4638b638f0dedaec48dda] --- projects/clr/hipamd/include/hip/hcc_detail/device_functions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/include/hip/hcc_detail/device_functions.h b/projects/clr/hipamd/include/hip/hcc_detail/device_functions.h index 0a775df275..4e07349e85 100644 --- a/projects/clr/hipamd/include/hip/hcc_detail/device_functions.h +++ b/projects/clr/hipamd/include/hip/hcc_detail/device_functions.h @@ -34,7 +34,7 @@ THE SOFTWARE. #include #include -#if __HIP_CLANG_ONLY__ && __HIP_VDI__ +#if __HIP_CLANG_ONLY__ && __HIP_VDI__ && !_WIN32 extern "C" __device__ int printf(const char *fmt, ...); #else #if HC_FEATURE_PRINTF