Skip to content

Commit 552f947

Browse files
committed
Use map to avoid spawing lots of kernels
1 parent 1b52969 commit 552f947

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/core/device/intrinsics/math.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,7 @@ using SpecialFunctions
114114
@testset "Float16 - $op" for op in (log,exp,exp2,exp10,log2,log10)
115115
all_float_16 = collect(reinterpret(Float16, pattern) for pattern in UInt16(0):UInt16(1):typemax(UInt16))
116116
all_float_16 = filter(!isnan, all_float_16)
117-
for each_float in all_float_16
118-
@test testf(x->op.(x), Float16[each_float])
119-
end
117+
@test testf(x->map(op, x), all_float_16)
120118
end
121119

122120
@testset "fastmath" begin

0 commit comments

Comments
 (0)