From da7c37947c81e214fd8aac4072a80fed76a5d4ff Mon Sep 17 00:00:00 2001 From: Siu Chi Chan Date: Mon, 23 Oct 2017 16:47:40 -0400 Subject: [PATCH] replace __hcc_workweek__ with HC_FEATURE_PRINTF flag --- hipamd/src/hip_hcc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipamd/src/hip_hcc.cpp b/hipamd/src/hip_hcc.cpp index 2d67c31fe7..ae53d7ae45 100644 --- a/hipamd/src/hip_hcc.cpp +++ b/hipamd/src/hip_hcc.cpp @@ -616,7 +616,7 @@ void ihipDevice_t::locked_reset() //FIXME - Calling am_memtracker_reset is really bad since it destroyed all buffers allocated by the HCC runtime as well //such as the printf buffer. Re-initialze the printf buffer as a workaround for now. -#if (__hcc_workweek__ >= 17423) +#ifdef HC_FEATURE_PRINTF Kalmar::getContext()->initPrintfBuffer(); #endif };