@tturbo on function call

Lincoln_Hannah
Sun, 23 Feb 2025 22:39:10 +0000
Performance

a=randn(5*10^7)
b=randn(5*10^7)

f(a::Float64,b::Float64)::Float64 = sin(a) + cos(b)

@time @tturbo @. sin(a) + cos(b)  # .05 seconds
@time @tturbo @. f(a,b)           # 1 second

Is it possible to get the @tturbo speedup using the function f() version?

5 posts - 4 participants

Read full topic