Made the batched routines also chose direct/indirect kernel like the main GEMM routine
parent
0e5eaa6eb9
commit
bc54411d19
|
@ -96,7 +96,7 @@ void XgemmBatched<T>::DoGemmBatched(const Layout layout, const Transpose a_trans
|
|||
}
|
||||
|
||||
// Selects which version of the batched GEMM to run
|
||||
const auto do_gemm_direct = true;
|
||||
const auto do_gemm_direct = Xgemm<T>::UseDirectKernel(m, n, k, db_["XGEMM_MIN_INDIRECT_SIZE"]);
|
||||
if (do_gemm_direct) { // single generic kernel
|
||||
BatchedGemmDirect(m, n, k, alphas_device,
|
||||
a_buffer, a_offsets_int, a_ld, b_buffer, b_offsets_int, b_ld,
|
||||
|
|
|
@ -76,7 +76,7 @@ void XgemmStridedBatched<T>::DoGemmStridedBatched(const Layout layout, const Tra
|
|||
}
|
||||
|
||||
// Selects which version of the batched GEMM to run
|
||||
const auto do_gemm_direct = true;
|
||||
const auto do_gemm_direct = Xgemm<T>::UseDirectKernel(m, n, k, db_["XGEMM_MIN_INDIRECT_SIZE"]);;
|
||||
if (do_gemm_direct) { // single generic kernel
|
||||
BatchedGemmDirect(m, n, k, alpha,
|
||||
a_buffer, a_offset, a_ld, a_stride,
|
||||
|
|
Loading…
Reference in New Issue