diff --git a/test/test_linalg.py b/test/test_linalg.py index ef0e627bd30589ba247c18c47a2046a575ec6407..96cbb869c38cfb6291516e0b9d55465d14186141 100644 --- a/test/test_linalg.py +++ b/test/test_linalg.py @@ -87,71 +87,60 @@ def get_suitable_size(ctx): +def check_float4(result, ref_result): + for comp in ["x", "y", "z", "w"]: + return np.allclose(ref_result[comp], result[comp], rtol=1e-3, atol=1e-3) + def test_axpy(ctx_factory): - dtype = np.float32 ctx = ctx_factory() - order = "C" - queue = cl.CommandQueue(ctx, - properties=cl.command_queue_properties.PROFILING_ENABLE) n = 20*1024**2 - knl = lp.make_kernel(ctx.devices[0], - "[n] -> {[i]: 0<=i {[i]: 0<=i