Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

Support subarrays? #23

Open
dlfivefifty opened this issue May 17, 2018 · 0 comments
Open

Support subarrays? #23

dlfivefifty opened this issue May 17, 2018 · 0 comments

Comments

@dlfivefifty
Copy link

I'm not sure if this should work, but nevertheless it throws an error:

julia> A = CLArray{Float32}(randn(100,100));

julia> b = CLArray{Float32}(randn(10));

julia> view(A,1:10,1:10)*b
ERROR: conversion to pointer not defined for CLArrays.CLArray{Float32,2}
Stacktrace:
 [1] unsafe_convert at ./subarray.jl:300 [inlined]
 [2] gemv!(::Char, ::Float32, ::SubArray{Float32,2,CLArrays.CLArray{Float32,2},Tuple{UnitRange{Int64},UnitRange{Int64}},false}, ::CLArrays.CLArray{Float32,1}, ::Float32, ::CLArrays.CLArray{Float32,1}) at ./linalg/blas.jl:503
 [3] gemv!(::CLArrays.CLArray{Float32,1}, ::Char, ::SubArray{Float32,2,CLArrays.CLArray{Float32,2},Tuple{UnitRange{Int64},UnitRange{Int64}},false}, ::CLArrays.CLArray{Float32,1}) at ./linalg/matmul.jl:266
 [4] *(::SubArray{Float32,2,CLArrays.CLArray{Float32,2},Tuple{UnitRange{Int64},UnitRange{Int64}},false}, ::CLArrays.CLArray{Float32,1}) at ./linalg/matmul.jl:75
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant