Skip to content

[CuBLAS] Support implicit broadcast in batch_matmul#8229

Merged
masahi merged 1 commit intoapache:mainfrom
comaniac:cublas_batch_matmul
Jun 10, 2021
Merged

[CuBLAS] Support implicit broadcast in batch_matmul#8229
masahi merged 1 commit intoapache:mainfrom
comaniac:cublas_batch_matmul

Conversation

@comaniac
Copy link
Copy Markdown
Contributor

@comaniac comaniac commented Jun 9, 2021

Closing #7730

This PR improves CuBLAS batch_matmul to support implicit broadcasting (i.e., the first dimension of matrix B is 1). Before this PR, the added test cases will throw errors like Check failed: BatchCount3D(B) == batch_size.

cc @masahi @tqchen

@comaniac comaniac linked an issue Jun 9, 2021 that may be closed by this pull request
@masahi masahi merged commit b93e56e into apache:main Jun 10, 2021
@masahi
Copy link
Copy Markdown
Member

masahi commented Jun 10, 2021

Thanks @comaniac, we should do this for rocblas too @csullivan @altanh

@comaniac comaniac deleted the cublas_batch_matmul branch June 10, 2021 05:12
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Jun 17, 2021
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Missing broadcast_to before batch_matmul for CuBLAS

2 participants