[TESTS] Increase the paylog of the globaltimer kernel to reduce chances of fakiness (#1726)

If the kernel is too small, on a very fast GPU we may get 0 because the
resolution of the timer seems too coarse.

Fixes #1725
This commit is contained in:
Mehdi Amini
2023-06-01 02:53:07 -07:00
committed by GitHub
parent b0c893cdc5
commit 440fd1bf20

View File

@@ -2852,7 +2852,7 @@ def test_globaltimer():
def kernel(Out1, Out2):
start = tl.extra.cuda.globaltimer()
off = tl.arange(0, 128)
for i in range(100):
for i in range(10000):
tl.store(Out1 + off, tl.load(Out1 + off) + 1)
end = tl.extra.cuda.globaltimer()
tl.store(Out2, end - start)