Commit 045bf6b6 authored by Adam Osewski's avatar Adam Osewski
Browse files

Multiple DebugLog messages.

parent c1129f38
...@@ -339,8 +339,8 @@ struct DeviceGroupedGemmXdlSplitKCShuffle : public DeviceGroupedGemmSplitK<ALayo ...@@ -339,8 +339,8 @@ struct DeviceGroupedGemmXdlSplitKCShuffle : public DeviceGroupedGemmSplitK<ALayo
GroupedGemmBlock2ETileMap(local_b2c_tile_map, block_start); GroupedGemmBlock2ETileMap(local_b2c_tile_map, block_start);
#if DEBUG_LOG #if DEBUG_LOG
std::cout << "[group " << i << "], k_padded: " << k_padded std::cout << "[group " << i << "], k_padded: " << k_padded << ", k0: " << k0
<< ", k0: " << k0 << std::endl; << std::endl;
#endif // DEBUG_LOG #endif // DEBUG_LOG
karg.KPadded = k_padded; karg.KPadded = k_padded;
...@@ -511,7 +511,8 @@ struct DeviceGroupedGemmXdlSplitKCShuffle : public DeviceGroupedGemmSplitK<ALayo ...@@ -511,7 +511,8 @@ struct DeviceGroupedGemmXdlSplitKCShuffle : public DeviceGroupedGemmSplitK<ALayo
{ {
#if DEBUG_LOG #if DEBUG_LOG
std::cout << "The group count is not equal to sum of skipped groups " std::cout << "The group count is not equal to sum of skipped groups "
"and kernel args size!" << std::endl; "and kernel args size!"
<< std::endl;
#endif // DEBUG_LOG #endif // DEBUG_LOG
return false; return false;
} }
...@@ -521,19 +522,15 @@ struct DeviceGroupedGemmXdlSplitKCShuffle : public DeviceGroupedGemmSplitK<ALayo ...@@ -521,19 +522,15 @@ struct DeviceGroupedGemmXdlSplitKCShuffle : public DeviceGroupedGemmSplitK<ALayo
{ {
const auto& a = arg.gemm_kernel_args_[i].karg_; const auto& a = arg.gemm_kernel_args_[i].karg_;
bool group_arg_valid = GridwiseGemm::CheckValidity(a); bool group_arg_valid = GridwiseGemm::CheckValidity(a);
#if DEBUG_LOG
if(not group_arg_valid) if(not group_arg_valid)
{ {
#if DEBUG_LOG
std::cout << "[" << __func__ << "] group id: " << i std::cout << "[" << __func__ << "] group id: " << i
<< " has invalid GridwiseGemm settings!" << std::endl; << " has invalid GridwiseGemm settings!" << std::endl;
a.Print(); a.Print();
}
#endif // DEBUG_LOG #endif // DEBUG_LOG
else
{
a.Print();
} }
supported &= group_arg_valid; supported = supported && group_arg_valid;
} }
return supported; return supported;
} }
......
...@@ -391,10 +391,10 @@ struct GridwiseGemm_bk0mk1_bk0nk1_mn_xdlops_v2r4r2 ...@@ -391,10 +391,10 @@ struct GridwiseGemm_bk0mk1_bk0nk1_mn_xdlops_v2r4r2
if(!(karg.M % MPerBlock == 0)) if(!(karg.M % MPerBlock == 0))
{ {
#if DEBUG_LOG #if DEBUG_LOG
std::cout << "Arg M value is not a multiple of MPerBlock! M: " << karg.M << " " std::cout << "Arg M value is not a multiple of MPerBlock! M: " << karg.M << " "
<< __FILE__ << ":" << __LINE__ << ", in function: " << __func__ << __FILE__ << ":" << __LINE__ << ", in function: " << __func__
<< std::endl; << std::endl;
#endif // DEBUG_LOG #endif // DEBUG_LOG
return false; return false;
} }
...@@ -407,10 +407,10 @@ struct GridwiseGemm_bk0mk1_bk0nk1_mn_xdlops_v2r4r2 ...@@ -407,10 +407,10 @@ struct GridwiseGemm_bk0mk1_bk0nk1_mn_xdlops_v2r4r2
if(!(karg.N % NPerBlock == 0)) if(!(karg.N % NPerBlock == 0))
{ {
#if DEBUG_LOG #if DEBUG_LOG
std::cout << "Arg N value is not a multiple of NPerBlock! N: " << karg.N << " " std::cout << "Arg N value is not a multiple of NPerBlock! N: " << karg.N << " "
<< __FILE__ << ":" << __LINE__ << ", in function: " << __func__ << __FILE__ << ":" << __LINE__ << ", in function: " << __func__
<< std::endl; << std::endl;
#endif // DEBUG_LOG #endif // DEBUG_LOG
return false; return false;
} }
...@@ -421,11 +421,11 @@ struct GridwiseGemm_bk0mk1_bk0nk1_mn_xdlops_v2r4r2 ...@@ -421,11 +421,11 @@ struct GridwiseGemm_bk0mk1_bk0nk1_mn_xdlops_v2r4r2
if(karg.K % ABlockTransferSrcScalarPerVector != 0) if(karg.K % ABlockTransferSrcScalarPerVector != 0)
{ {
#if DEBUG_LOG #if DEBUG_LOG
std::cout << "Arg K (" << karg.K << ") value is not a multiple of ABlockTransferSrcScalarPerVector (" std::cout << "Arg K (" << karg.K
<< ABlockTransferSrcScalarPerVector << " )! " << ") value is not a multiple of ABlockTransferSrcScalarPerVector ("
<< __FILE__ << ":" << __LINE__ << ", in function: " << __func__ << ABlockTransferSrcScalarPerVector << " )! " << __FILE__ << ":"
<< std::endl; << __LINE__ << ", in function: " << __func__ << std::endl;
#endif // DEBUG_LOG #endif // DEBUG_LOG
return false; return false;
} }
...@@ -435,11 +435,11 @@ struct GridwiseGemm_bk0mk1_bk0nk1_mn_xdlops_v2r4r2 ...@@ -435,11 +435,11 @@ struct GridwiseGemm_bk0mk1_bk0nk1_mn_xdlops_v2r4r2
if(karg.M % ABlockTransferSrcScalarPerVector != 0) if(karg.M % ABlockTransferSrcScalarPerVector != 0)
{ {
#if DEBUG_LOG #if DEBUG_LOG
std::cout << "Arg M (" << karg.M << ") value is not a multiple of ABlockTransferSrcScalarPerVector (" std::cout << "Arg M (" << karg.M
<< ABlockTransferSrcScalarPerVector << " )! " << ") value is not a multiple of ABlockTransferSrcScalarPerVector ("
<< __FILE__ << ":" << __LINE__ << ", in function: " << __func__ << ABlockTransferSrcScalarPerVector << " )! " << __FILE__ << ":"
<< std::endl; << __LINE__ << ", in function: " << __func__ << std::endl;
#endif // DEBUG_LOG #endif // DEBUG_LOG
return false; return false;
} }
...@@ -450,11 +450,11 @@ struct GridwiseGemm_bk0mk1_bk0nk1_mn_xdlops_v2r4r2 ...@@ -450,11 +450,11 @@ struct GridwiseGemm_bk0mk1_bk0nk1_mn_xdlops_v2r4r2
if(karg.N % BBlockTransferSrcScalarPerVector != 0) if(karg.N % BBlockTransferSrcScalarPerVector != 0)
{ {
#if DEBUG_LOG #if DEBUG_LOG
std::cout << "Arg N (" << karg.N << ") value is not a multiple of BBlockTransferSrcScalarPerVector (" std::cout << "Arg N (" << karg.N
<< BBlockTransferSrcScalarPerVector << " )! " << ") value is not a multiple of BBlockTransferSrcScalarPerVector ("
<< __FILE__ << ":" << __LINE__ << ", in function: " << __func__ << BBlockTransferSrcScalarPerVector << " )! " << __FILE__ << ":"
<< std::endl; << __LINE__ << ", in function: " << __func__ << std::endl;
#endif // DEBUG_LOG #endif // DEBUG_LOG
return false; return false;
} }
...@@ -464,11 +464,11 @@ struct GridwiseGemm_bk0mk1_bk0nk1_mn_xdlops_v2r4r2 ...@@ -464,11 +464,11 @@ struct GridwiseGemm_bk0mk1_bk0nk1_mn_xdlops_v2r4r2
if(karg.K % BBlockTransferSrcScalarPerVector != 0) if(karg.K % BBlockTransferSrcScalarPerVector != 0)
{ {
#if DEBUG_LOG #if DEBUG_LOG
std::cout << "Arg K (" << karg.K << ") value is not a multiple of BBlockTransferSrcScalarPerVector (" std::cout << "Arg K (" << karg.K
<< BBlockTransferSrcScalarPerVector << " )! " << ") value is not a multiple of BBlockTransferSrcScalarPerVector ("
<< __FILE__ << ":" << __LINE__ << ", in function: " << __func__ << BBlockTransferSrcScalarPerVector << " )! " << __FILE__ << ":"
<< std::endl; << __LINE__ << ", in function: " << __func__ << std::endl;
#endif // DEBUG_LOG #endif // DEBUG_LOG
return false; return false;
} }
...@@ -479,11 +479,12 @@ struct GridwiseGemm_bk0mk1_bk0nk1_mn_xdlops_v2r4r2 ...@@ -479,11 +479,12 @@ struct GridwiseGemm_bk0mk1_bk0nk1_mn_xdlops_v2r4r2
if(karg.N % CBlockTransferScalarPerVector_NWaveNPerXDL != 0) if(karg.N % CBlockTransferScalarPerVector_NWaveNPerXDL != 0)
{ {
#if DEBUG_LOG #if DEBUG_LOG
std::cout << "Arg N (" << karg.N << ") value is not a multiple of CBlockTransferScalarPerVector_NWaveNPerXDL (" std::cout
<< CBlockTransferScalarPerVector_NWaveNPerXDL << " )! " << "Arg N (" << karg.N
<< __FILE__ << ":" << __LINE__ << ", in function: " << __func__ << ") value is not a multiple of CBlockTransferScalarPerVector_NWaveNPerXDL ("
<< std::endl; << CBlockTransferScalarPerVector_NWaveNPerXDL << " )! " << __FILE__ << ":"
<< __LINE__ << ", in function: " << __func__ << std::endl;
#endif // DEBUG_LOG #endif // DEBUG_LOG
return false; return false;
} }
...@@ -493,11 +494,12 @@ struct GridwiseGemm_bk0mk1_bk0nk1_mn_xdlops_v2r4r2 ...@@ -493,11 +494,12 @@ struct GridwiseGemm_bk0mk1_bk0nk1_mn_xdlops_v2r4r2
if(karg.M % CBlockTransferScalarPerVector_NWaveNPerXDL != 0) if(karg.M % CBlockTransferScalarPerVector_NWaveNPerXDL != 0)
{ {
#if DEBUG_LOG #if DEBUG_LOG
std::cout << "Arg M (" << karg.M << ") value is not a multiple of CBlockTransferScalarPerVector_NWaveNPerXDL (" std::cout
<< CBlockTransferScalarPerVector_NWaveNPerXDL << " )! " << "Arg M (" << karg.M
<< __FILE__ << ":" << __LINE__ << ", in function: " << __func__ << ") value is not a multiple of CBlockTransferScalarPerVector_NWaveNPerXDL ("
<< std::endl; << CBlockTransferScalarPerVector_NWaveNPerXDL << " )! " << __FILE__ << ":"
<< __LINE__ << ", in function: " << __func__ << std::endl;
#endif // DEBUG_LOG #endif // DEBUG_LOG
return false; return false;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment