[BLAS][rocBLAS] Update rocBLAS backend#428
Conversation
…date-rocblas-backend
|
I submitted a pull request for bf16 gemm and then found your pull requests for supporting many functions. Is it right rocblas supports bf16 gemm ? |
|
Nice catch @jinz2014
It also made me realize that I'll commit this ASAP. Would you mind also adding the support for row_major gemm_ex? The code is already present for it, within this PR. Do you prefer to merge your PR on its own, or merge it as part of this rocBLAS update PR? |
|
Please merge my PR as part of your rocBLAS update. I will close my PR. |
…update-rocblas-backend - Fix conflicts - Add support for the row-major entries
|
@andrewtbarker Could you please add reviewers for the PR ? Thanks. |
…date-rocblas-backend
|
I see all the buffer tests failing for the Logs: This PR is blocked on oneapi-src/unified-runtime#1226 and intel/llvm#12297 |
The reason that the buffer tests fails ( It is because the "Accessor interop requires urMemGetNativeHandle to return a valid mem handle. Multi dev ctx breaks this ..." This means that if you go to a previous commit, the results will be the same. |
Yes, that is what I meant actually, but I should have worded my comment better. Thank you for the correction. |
andrewtbarker
left a comment
There was a problem hiding this comment.
This is a nice PR. I have a suggestion to reduce code duplication in the level 2 BLAS interfaces, but generally I'm very happy with this.
andrewtbarker
left a comment
There was a problem hiding this comment.
This is very nice, approved!
mmeterel
left a comment
There was a problem hiding this comment.
Thanks for updates. Looks good.
Co-authored-by: Jin Z <5zj@cousteau.ftpn.ornl.gov>
Co-authored-by: Jin Z <5zj@cousteau.ftpn.ornl.gov>
Co-authored-by: Jin Z <5zj@cousteau.ftpn.ornl.gov>
Description
This PR updates the rocBLAS backend's functions for LEVEL1, LEVEL2, LEVEL3, EXTENSION and BATCH which used to be unimplemented.
Most ColumnMajor, RowMajor, Buffer and USM functions which used to be marked as
throw unimplementedare now implemented and does not result in skipped test anymore.The functions that are still marked as implemented (due to missing a mapping to rocBLAS) are:
axpbydot(float, float, double)gemm_biasgemmtimatcopyimatcopy_batchWith the exception ofrow_major::gemv_batchfrom BATCH which will soon be implemented.Implemented with the latest commit Update unimplemented function 'row_major::gemv_batch'
This PR also updated some minor parts of already implemented functions:
depends_on. This method can take a vector, so there is no need to loop around it.waittowait_and_throw.Modify the(Restore during PR's review)throw unimplementedmessages to be more accurate and up to date.Checklist
All Submissions
example_blas_gemm_usm.log.txt
test_main_blas_ct.log.txt
test_main_blas_rt.log.txt