Skip to content

Commit

Permalink
Bug rocblas int8 (#767)
Browse files Browse the repository at this point in the history
* fix the flag in rocblas api for int8 data type

* used different flag for different rocblas versions

* clang format

Co-authored-by: mvermeulen <[email protected]>
  • Loading branch information
scxiao and mvermeulen authored Mar 10, 2021
1 parent 197b3a4 commit 63e04f5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/targets/gpu/gemm_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ void gemm_impl(
compute_type,
rocblas_gemm_algo_standard,
0,
#if ROCBLAS_VERSION_MAJOR >= 2 && ROCBLAS_VERSION_MINOR >= 38
rocblas_gemm_flags_pack_int8x4);
#else
0);
#endif
}
else
{
Expand Down Expand Up @@ -141,7 +145,11 @@ void gemm_impl(
compute_type,
rocblas_gemm_algo_standard,
0,
#if ROCBLAS_VERSION_MAJOR >= 2 && ROCBLAS_VERSION_MINOR >= 38
rocblas_gemm_flags_pack_int8x4);
#else
0);
#endif
}
});
}
Expand Down

0 comments on commit 63e04f5

Please sign in to comment.