IntelLabs / ParallelAccelerator.jl

The ParallelAccelerator package, part of the High Performance Scripting project at Intel Labs
BSD 2-Clause "Simplified" License
294 stars 32 forks source link

reshape test error #140

Open ehsantn opened 7 years ago

ehsantn commented 7 years ago

This program fails with the following error:

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