hipDeviceReset(): make sure to reinitialize the printf buffer in hcc RT

[ROCm/clr commit: a1956f64e6]
Ta zmiana jest zawarta w:
%! (template.HTML=Siu Chi Chan)złożyło 2017-10-18 16:26:13 -04:00
1 rodzic 7a9f645795
złożenie 5ccf3d4d9b
Plik 1 zmieniony
+5
+5
Wyświetl plik
@@ -614,6 +614,11 @@ void ihipDevice_t::locked_reset()
_state = 0;
am_memtracker_reset(_acc);
//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)
Kalmar::getContext()->initPrintfBuffer();
#endif
};
#define ErrorCheck(x) error_check(x, __LINE__, __FILE__)