SWDEV-232428 - Enable device printf for Windows

Change-Id: Id72cfc34cfcfcbcb459bd8d84979637eaf7947dd
Этот коммит содержится в:
Vladislav Sytchenko
2021-02-20 14:36:41 -05:00
родитель c2a767a66e
Коммит 1f8bdcaf20
+2 -2
Просмотреть файл
@@ -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