using ParallelAccelerator
@acc function test_reshape(A)
return reshape(A,1,3)
end
A = ones(3)
test_reshape(A)
ERROR: LoadError: MethodError: no method matching identical(::Type{Array{Float64,2}}, ::Array{Float64,1})
Closest candidates are:
identical{T}(::Type{T}, !Matched::T) at /Users/etotoni/.julia/v0.5/CompilerTools/src/OptFramework.jl:526
in test_reshape(::Array{Float64,1}) at /Users/etotoni/.julia/v0.5/CompilerTools/src/OptFramework.jl:598
in include_from_node1(::String) at ./loading.jl:488
in include_from_node1(::String) at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:?
in process_options(::Base.JLOptions) at ./client.jl:262
in _start() at ./client.jl:318
in _start() at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:?
while loading /Users/etotoni/.julia/v0.5/ParallelAccelerator/test/reshape_t.jl, in expression starting on line 10
This program fails with the following error: