From 22254b2a7871c4dd23cc33593db400c58993b9b9 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Sun, 23 Sep 2012 15:15:10 -0500 Subject: [PATCH] Minor fixes. --- loopy/preprocess.py | 3 ++- test/test_linalg.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/loopy/preprocess.py b/loopy/preprocess.py index 2bdf9a115..f3b5305f5 100644 --- a/loopy/preprocess.py +++ b/loopy/preprocess.py @@ -153,7 +153,8 @@ def mark_local_temporaries(kernel): if (locparallel_assignee_inames != locparallel_compute_inames and bool(locparallel_assignee_inames)): - raise RuntimeError("instruction '%s' looks invalid: " + from loopy.check import WriteRaceConditionError + raise WriteRaceConditionError("instruction '%s' looks invalid: " "it assigns to indices based on local IDs, but " "its temporary '%s' cannot be made local because " "a write race across the iname(s) '%s' would emerge. " diff --git a/test/test_linalg.py b/test/test_linalg.py index b6087f442..eaf426fdd 100644 --- a/test/test_linalg.py +++ b/test/test_linalg.py @@ -347,7 +347,7 @@ def test_rank_one(ctx_factory): lp.auto_test_vs_ref(seq_knl, ctx, kernel_gen, op_count=[np.dtype(dtype).itemsize*n**2/1e9], op_label=["GBytes"], - parameters={"n": n}, edit_code=True, do_check=False) + parameters={"n": n}) -- GitLab