You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
oneMKL is an open-source implementation of the oneMKL Data Parallel C++ (DPC++) interface according to the oneMKL specification. The library provides backends for CUDA as well as Intel MKL. In addition, it is possible to dynamically select a backend based on a SYCL queue.
Our example should demonstrate how dpctl's infrastructure can be used to easily create a Python module for oneMKL.
A high-level design can we as follows:
Expose the onemkl::gemm routine as matmul.
Introduce convenience types mat and vec that are based on dpctl.tensor.usm_ndarray.
The function should accept a SyclQueue, mat, and optionally a list of SyclEvent objects and return a SyclEvent object.
Demonstrate the usage of SyclTimer to time execution.
Demonstrate ways to print a matrix/vector by first copying them into Numpy.ndarray.