Skip to content
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

@dlfivefifty

Description

@dlfivefifty

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions