We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c137a8c commit 3f45655Copy full SHA for 3f45655
test/device/math.jl
@@ -16,9 +16,11 @@ using Base.FastMath
16
isdefined(SpecialFunctions, jlintr) ? SpecialFunctions :
17
nothing)
18
modname !== nothing || continue
19
+
20
# FIXME: Handle all input and output args
21
T = intr.inp_args[1]
22
intr_kern = Symbol("intr_$(jlintr)_$T")
23
24
@eval begin
25
function $intr_kern(out, a)
26
i = Device.workitemIdx().x
@@ -38,6 +40,8 @@ using Base.FastMath
38
40
end
39
41
len = prod(dims)
42
43
+ @test only(Base.return_types($modname.$jlintr, (eltype(d_a),))) === eltype(d_out)
44
45
wait(@roc groupsize=len $intr_kern(d_out, d_a))
46
out = Array(d_out)
47
@test $modname.$jlintr.(a) ≈ out
0 commit comments