Closed ehsantn closed 8 years ago
Commit 96886dc6507c5cea110ea46c4f33c5b15b1bdf45 solves the problem for Julia 0.5, which has to do with passing constants (type, globalref) to inner function.
Commit e1da90f solves the problem for Julia 0.4 by creating a method for rand(Float32,...)
in API.Lib. This is because somehow Julia 0.4 refuses to inline the method for rand(T::DataType, ...)
, but Julia 0.5 can.
Gives this error:
If I comment out the type annotation line:
Seems like it cannot recognize the rand() with type annotation since there is
not handled ParallelAccelerator.API.rand
in DomainIR debug output.