Skip to content

Add abstraction for invocation of interop_task#103

Merged
mmeterel merged 2 commits intouxlfoundation:developfrom
sbalint98:ustream-host-task-abstraction
Jun 23, 2021
Merged

Add abstraction for invocation of interop_task#103
mmeterel merged 2 commits intouxlfoundation:developfrom
sbalint98:ustream-host-task-abstraction

Conversation

@sbalint98
Copy link
Contributor

@sbalint98 sbalint98 commented Jun 9, 2021

Description

This PR abstracts away the interop_task calls inside the cuBLAS functions. This approach is intended to be very similar to the one for the MKLcpu functions. Putting the actual call inside the cublas_task.hpp allows us to cleanly define an alternative if we want to use a different interface.

This PR also changes the interface for CublasScopedContextHandler. The interop_handler is passed with the constructor; this enables changing the CublasScopedContextHandler implementation to be easily switched among different SYCL implementations.

For example, in the case of hipSYCL, this PR enables the following pattern: https://github.com/sbalint98/oneMKL/blob/90598195961ce6cfa4c4a6723176611a2a5487ea/src/blas/backends/cublas/cublas_task.hpp

related to #99

All Submissions

  • Do all unit tests pass locally? Attach a log.
  • Have you formatted the code using clang-format?

Copy link
Contributor

@mkrainiuk mkrainiuk left a comment

Choose a reason for hiding this comment

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

Thank you for PR! Looks good to me.

@mkrainiuk mkrainiuk requested a review from mmeterel June 16, 2021 21:20
@mmeterel
Copy link
Contributor

Looks good to me.

@mmeterel mmeterel merged commit e375992 into uxlfoundation:develop Jun 23, 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.

3 participants