Skip to content

Commit 54d81c5

Browse files
committed
remove kernel redefinition test due to method overwrite warning
1 parent e6a49dc commit 54d81c5

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

test/execution.jl

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,33 +1589,3 @@ end
15891589
end
15901590

15911591
end
1592-
1593-
@testset "redefinition of kernel" begin
1594-
function vadd_kernel(a::ct.TileArray{Float32,1}, b::ct.TileArray{Float32,1}, c::ct.TileArray{Float32,1})
1595-
pid = ct.bid(1)
1596-
ta = ct.load(a, (pid,), (16,))
1597-
tb = ct.load(b, (pid,), (16,))
1598-
ct.store(c, (pid,), ta + tb)
1599-
return
1600-
end
1601-
1602-
a = CUDA.ones(Float32, 1024)
1603-
b = CUDA.ones(Float32, 1024)
1604-
c = CUDA.zeros(Float32, 1024)
1605-
1606-
ct.launch(vadd_kernel, 64, a, b, c)
1607-
1608-
@test Array(c) Array(a) + Array(b)
1609-
1610-
function vadd_kernel(a::ct.TileArray{Float32,1}, b::ct.TileArray{Float32,1}, c::ct.TileArray{Float32,1})
1611-
pid = ct.bid(1)
1612-
ta = ct.load(a, (pid,), (16,))
1613-
tb = ct.load(b, (pid,), (16,))
1614-
ct.store(c, (pid,), ta + tb * 2)
1615-
return
1616-
end
1617-
1618-
ct.launch(vadd_kernel, 64, a, b, c)
1619-
1620-
@test Array(c) Array(a) + Array(b) * 2
1621-
end

0 commit comments

Comments
 (0)