-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
missing numpy cuda math functions, e.g. matmul #3409
Comments
Thanks for the request. The following is under development and may help?
Failing this, pyculib provides a cuBLAS wrapper. |
CuPy from what I saw is more like C, and I would prefer to use python :) |
Just to check we are talking about the same thing. When I say CuPy I mean https://github.com/cupy/cupy
It is a Python package that has a NumPy like API and targets CUDA GPUs. No C or C-like behaviour involved unless you want to write custom kernels/do lower level things. As you asked for NumPy like functions, they support a lot https://docs-cupy.chainer.org/en/stable/overview.html, which was my reason for suggesting it. The specific matrix product related functions are here https://docs-cupy.chainer.org/en/stable/reference/linalg.html#matrix-and-vector-products. Hope this helps? |
CuPy looks definitely interesting, but it would be nice if numba can integrate natively some of those functions |
CUPy is definitely interesting, especially for numba interoperability: |
Any chance of making a wrapper for at least the BLAS functions since there is a certain degree of interoperability with cupy? |
Would it be possible to inline cupy/numpy functions in the guvectorize decorator? |
I have a kernel runing with guvectorize on 'cpu' and 'cuda'
Since there is no matmul support, I have to implement this outside of the kernel as a jitted function decorated depending if it is 'cpu' or 'cuda' used.
This swould be a relative "easy" way to generate functions like matmul, transpose. I do not how to add patches, but I could write the functions example.
Not sure if this is related to Docs 6 & 8 but it wold be usefull to have those functions and additional ones when using 'cuda' and basically extend http://numba.pydata.org/numba-doc/latest/cuda/cudapysupported.html#built-in-functions
The text was updated successfully, but these errors were encountered: