Fix HIP_TRACE_API so kernel launch only printed when requested.

Tá an tiomantas seo le fáil i:
Ben Sander
2017-05-13 16:00:26 +00:00
tuismitheoir 8bc6ee5932
tiomantas fad9104b5f
D'athraigh 2 comhad le 2 breiseanna agus 1 scriosta
+1 -1
Féach ar an gComhad
@@ -54,7 +54,7 @@ namespace hip_impl
{
if ((HIP_TRACE_API & (1 << TRACE_KCMD)) ||
HIP_PROFILE_API ||
(COMPILE_HIP_DB && HIP_TRACE_API)) {
(COMPILE_HIP_DB && (HIP_TRACE_API & (1<<TRACE_ALL)))) {
std::stringstream os;
os << tls_tidInfo.tid() << "." << tls_tidInfo.apiSeqNum()
<< " hipLaunchKernel '" << kernel_name << "'"