oneapi-src / oneMKL

oneAPI Math Kernel Library (oneMKL) Interfaces
Apache License 2.0
607 stars 155 forks source link

[Feature Request] Support value_or_pointer arguments for oneMKL functions #553

Open ndgrigorian opened 1 month ago

ndgrigorian commented 1 month ago

OneAPI spec delineates value_or_pointer which enables writing complex programs where the results of kernels can be chained together without bringing data to the host.

Providing these overloads would improve usability of oneMKL Interfaces.

Rbiessy commented 3 weeks ago

I agree it would be nice to implement this feature already in the spec. The spec uses value_or_pointer only for the BLAS domain and USM API, would that be enough for your purposes? @oneapi-src/onemkl-blas-write do you have any plan to work on that?

ndgrigorian commented 3 weeks ago

I agree it would be nice to implement this feature already in the spec. The spec uses value_or_pointer only for the BLAS domain and USM API, would that be enough for your purposes? @oneapi-src/onemkl-blas-write do you have any plan to work on that?

Yes, it would be. It's also worth noting that rocBLAS and cuBLAS support pointers for scalar arguments.