Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use 'CLBlastSgemmBatched'? #550

Open
diverger opened this issue Jul 9, 2024 · 1 comment
Open

How to use 'CLBlastSgemmBatched'? #550

diverger opened this issue Jul 9, 2024 · 1 comment
Labels

Comments

@diverger
Copy link

diverger commented Jul 9, 2024

Hi,

I'm moving from ‘cublasCgemmBatched()’ to ‘CLBlastSgemmBatched()’, for the former, the A, B and C matrix is passed as array of pointer to array. Then how the matrix should be passed to the later? How should I pass the batched A1, A2, A3..., or B1, B2, B3, ..., etc to it?
Use staked matrix?

Thanks.

@CNugteren
Copy link
Owner

Have you looked at the API docs or the sample usage of this function? The answer to your question is in the docs:

const cl_mem a_buffer: OpenCL buffer to store the input A matrix.
const size_t *a_offsets: The offsets in elements from the start of the input A matrix.
const size_t a_ld: Leading dimension of the input A matrix. This value must be greater than 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants