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

[oneMKL][Sparse BLAS] Add sycl::queue & to sparse::init_matrix_handle() API #505

Conversation

gajanan-choudhary
Copy link
Contributor

Proposal

  • Change the oneapi::mkl::sparse::init_matrix_handle() API to also include a sycl::queue &queue as a function argument.
  • We recommend this change should go into the finalized version 1.3 release of the oneAPI Specification.
  • The rationale is that in implementations of the oneMKL specification, such as oneMKL Interfaces repository, dispatching directly to a backend library from the spec APIs is easier when the queue is part of the API for
    • Without the queue in there, implementations need to maintain an implementation of oneapi::mkl::sparse::matrix_handle_t.
    • With the queue in there, implementations can directly forward the arguments to different backend implementations such as the Intel oneMKL library or the cuSPARSE library.
  • Also adds a space character in release_matrix_handle() documentation that was missed out; just a minor typo.

Copy link
Contributor

@spencerpatty spencerpatty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes look fine to me!

@Rbiessy
Copy link
Contributor

Rbiessy commented Oct 4, 2023

Looks good to me, thanks!

@gajanan-choudhary
Copy link
Contributor Author

@spencerpatty, please merge this PR in when you get a chance.

@gajanan-choudhary
Copy link
Contributor Author

gajanan-choudhary commented Oct 29, 2023

@rscohn2, could you please confirm that if this PR is merged in right now, it will be made part of the oneAPI specification version 1.3 that will be created/released soon?

@rscohn2
Copy link
Member

rscohn2 commented Oct 29, 2023

@rscohn2, could you please confirm that if this PR is merged in right now, it will be made part of the oneAPI specification version 1.3 that will be created/released soon?

Yes

@spencerpatty spencerpatty merged commit 2189b57 into uxlfoundation:main Oct 29, 2023
3 checks passed
aepanchi pushed a commit to aepanchi/oneAPI-spec that referenced this pull request Oct 31, 2023
@gajanan-choudhary gajanan-choudhary deleted the oneMKL/SpBLAS/gajanan-choudhary/add-queue-to-init_matrix_handle branch November 3, 2023 17:31
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.

4 participants