Closed MikeInnes closed 4 years ago
using LinearAlgebra, IRTools, BenchmarkTools using IRTools: IR, @dynamo @dynamo function pass(f, x) ir = IR(f, x) return ir end A = rand(100, 100)
julia> @btime tr($A) 77.351 ns (0 allocations: 0 bytes) 49.604880105076276 julia> @btime pass(tr, $A) 78.095 ns (0 allocations: 0 bytes) 49.604880105076276
cc @roger-luo
Thanks for the quick fix! I could try to wrap my spmd package now
cc @roger-luo