-
Notifications
You must be signed in to change notification settings - Fork 19
importall BLAS for generic code #1
Comments
👍 what's the status of this? |
Nevermind, I just saw you did this in 217c8d7, so close this issue? |
Does this really work? julia> using CUDArt
julia> using CUBLAS
julia> x = rand(10); y = rand(10);
julia> d_x = CudaArray(x); d_y = CudaArray(y);
julia> dot(d_x, d_y)
ERROR: MethodError: `dot` has no method matching dot(::CUDArt.CudaArray{Float64,1}, ::CUDArt.CudaArray{Float64,1})
julia> VERSION
v"0.4.1" |
I think dot is in Base.LinAlg rather than Base.LinAlg.BLAS. We should On Thu, Dec 3, 2015 at 6:18 PM Dominique [email protected] wrote:
|
Hmm, it seems a bit more complicated. Base.LinAlg and Base.LinAlg.BLAS each export a different version of dot, so it is not clear which we should extend. I submitted an issue about this: JuliaLang/LinearAlgebra.jl#289 |
Hi Nick,
Currently CUBLAS does not export or modify any existing functions, but provides separate CUBLAS versions like CUBLAS.axpy! etc. (If I understand things correctly). If you add the line:
to the beginning of CUBLAS.jl, (see module usage), then it will be possible for the users to write generic code that works whether the inputs are Arrays or CudaArrays.
best,
deniz
The text was updated successfully, but these errors were encountered: