We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fee67c2 commit 1ce48dbCopy full SHA for 1ce48db
test/interpret.jl
@@ -645,7 +645,11 @@ module VecTest
645
end
646
f() = 1.0 * one(Tensor{2,3})
647
648
-let a = (VecElement{Float64}(1.0), VecElement{Float64}(2.0))
+let
649
+ # NOTE we need to make sure this code block is compiled, since vecadd is generated function,
650
+ # but currently `@interpret` doesn't handle a call to generated functions very well
651
+ @static isdefined(Base.Experimental, Symbol("@force_compile")) && Base.Experimental.@force_compile
652
+ a = (VecElement{Float64}(1.0), VecElement{Float64}(2.0))
653
@test @interpret(VecTest.vecadd(a, a)) == VecTest.vecadd(a, a)
654
655
@test @interpret(VecTest.f()) == [1 0 0; 0 1 0; 0 0 1]
0 commit comments