The ParallelAccelerator package, part of the High Performance Scripting project at Intel Labs
f(x)=x.+x.*x
@acc f2(x)=x.+x.*x
julia> f(x)=x.+x.*x
f (generic function with 1 method)
julia> @time f([1,2,3,4,5])
0.021305 seconds (24.38 k allocations: 1.195 MiB)
5-element Array{Int64,1}:
2
6
12
20
30
julia> @time f([1,2,3,4,5])
0.000004 seconds (6 allocations: 416 bytes)
5-element Array{Int64,1}:
2
6
12
20
30