ArrayFire.jl icon indicating copy to clipboard operation
ArrayFire.jl copied to clipboard

AbstractArray methods not implemented in ArrayFire are slow

Open ghost opened this issue 8 years ago • 3 comments

See JuliaDiffEq/DifferentialEquations.jl#199 for example.

Would it better if it fails to run instead?

ghost avatar Sep 13 '17 10:09 ghost

Let's have an option to set fast fail. Like ArrayFire.fastfail(true) would now give you an informative error message.

ranjanan avatar Sep 13 '17 10:09 ranjanan

GPUArrays has GPUArrays.allowslow(false). Something similar would be nice. If you could get that going I'll continue on JuliaDiffEq/DifferentialEquations.jl#199 since I am (finally) done travelling and have AF all setup.

ChrisRackauckas avatar Oct 18 '17 17:10 ChrisRackauckas

Added allowslow:

julia> allowslow(AFArray, false)
julia> a[5]
ERROR: getindex is disabled

ghost avatar Oct 18 '17 19:10 ghost