Skip to content

Commit 1b42b98

Browse files
authored
Merge pull request #163 from tejank10/master
kwargs for testf
2 parents 0ea250a + 3900814 commit 1b42b98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/testsuite.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ using StaticArrays
1717
convert_array(f, x) = f(x)
1818
convert_array(f, x::Base.RefValue) = x[]
1919

20-
function compare(f, AT::Type{<:GPUArray}, xs...)
20+
function compare(f, AT::Type{<:GPUArray}, xs...; kwargs...)
2121
cpu_in = convert_array.(copy, xs)
2222
gpu_in = convert_array.(AT, xs)
23-
cpu_out = f(cpu_in...)
24-
gpu_out = f(gpu_in...)
23+
cpu_out = f(cpu_in...; kwargs...)
24+
gpu_out = f(gpu_in...; kwargs...)
2525
collect(cpu_out) collect(gpu_out)
2626
end
2727

0 commit comments

Comments
 (0)