Skip to content
Snippets Groups Projects
Commit c4f4abb8 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Remove test whose nonsensical-ness has been exposed by new scheduler heuristic

parent 588ba939
No related branches found
No related tags found
No related merge requests found
...@@ -554,40 +554,6 @@ def test_image_matrix_mul_ilp(ctx_factory): ...@@ -554,40 +554,6 @@ def test_image_matrix_mul_ilp(ctx_factory):
parameters={}) parameters={})
@pytest.mark.skipif("sys.version_info < (2,6)")
def test_ilp_race_matmul(ctx_factory):
dtype = np.float32
order = "C"
n = 9
knl = lp.make_kernel(
"{[i,j,k]: 0<=i,j,k<%d}" % n,
[
"c[i, j] = sum(k, a[i, k]*b[k, j])"
],
[
lp.ImageArg("a", dtype, shape=(n, n)),
lp.ImageArg("b", dtype, shape=(n, n)),
lp.GlobalArg("c", dtype, shape=(n, n), order=order),
],
name="matmul")
knl = lp.split_iname(knl, "j", 2, outer_tag="ilp", inner_tag="l.0")
knl = lp.split_iname(knl, "k", 2)
knl = lp.add_prefetch(knl, 'b', ["k_inner"])
with lp.CacheMode(False):
from loopy.diagnostic import WriteRaceConditionWarning
from warnings import catch_warnings
with catch_warnings(record=True) as warn_list:
knl = lp.preprocess_kernel(knl)
list(lp.generate_loop_schedules(knl))
assert any(isinstance(w.message, WriteRaceConditionWarning)
for w in warn_list)
def test_fancy_matrix_mul(ctx_factory): def test_fancy_matrix_mul(ctx_factory):
dtype = np.float32 dtype = np.float32
ctx = ctx_factory() ctx = ctx_factory()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment