Fix HIP_TRACE_API so kernel launch only printed when requested.
This commit is contained in:
@@ -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 << "'"
|
||||
|
||||
@@ -184,6 +184,7 @@ addCountReverse( const T *A_d,
|
||||
}
|
||||
|
||||
|
||||
template <typename T>
|
||||
void setDefaultData(size_t numElements, T *A_h, T* B_h, T *C_h)
|
||||
{
|
||||
// Initialize the host data:
|
||||
|
||||
Viittaa uudesa ongelmassa
Block a user