SWDEV-232428 - Enable device printf for Windows

Change-Id: Id72cfc34cfcfcbcb459bd8d84979637eaf7947dd
This commit is contained in:
Vladislav Sytchenko
2021-02-20 14:36:41 -05:00
parent d134c05699
commit 084d25010b
+2 -2
View File
@@ -34,12 +34,12 @@ THE SOFTWARE.
#include <hip/amd_detail/device_library_decls.h>
#include <hip/amd_detail/llvm_intrinsics.h>
#if __HIP_CLANG_ONLY__ && !_WIN32
#if __HIP_CLANG_ONLY__
extern "C" __device__ int printf(const char *fmt, ...);
#else
template <typename... All>
static inline __device__ void printf(const char* format, All... all) {}
#endif // __HIP_CLANG_ONLY__ && !_WIN32
#endif // __HIP_CLANG_ONLY__
/*
Integer Intrinsics