This repository was archived by the owner on Sep 27, 2021. It is now read-only.
This repository was archived by the owner on Sep 27, 2021. It is now read-only.
Support subarrays? #23
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels