Fix HIP_TRACE_API so kernel launch only printed when requested.

This commit is contained in:
Ben Sander committed 2017-05-16 19:04:25 -05:00
1 parent 27877f8854
commit 427f8472aa
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -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 << "'"