From dc04da50d2136928a3d3115e343aa9364ca680cc Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Sat, 25 Jun 2011 21:21:39 -0400
Subject: [PATCH] Loosen a few error bounds for Cayman and Intel CL.

---
 test/test_array.py  | 2 +-
 test/test_clmath.py | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/test_array.py b/test/test_array.py
index 9627b95f..b01fba48 100644
--- a/test/test_array.py
+++ b/test/test_array.py
@@ -215,7 +215,7 @@ def test_divide_scalar(ctx_getter):
     assert (a/2 == result).all()
 
     result = (2/a_gpu).get()
-    assert (2/a == result).all()
+    assert (np.abs(2/a - result) < 1e-5).all()
 
 
 
diff --git a/test/test_clmath.py b/test/test_clmath.py
index 8e4a60f5..bdeb2d8d 100644
--- a/test/test_clmath.py
+++ b/test/test_clmath.py
@@ -78,8 +78,8 @@ if have_cl():
     test_log10 = make_unary_function_test("log10", (1e-5, 1), 5e-7)
     test_sqrt = make_unary_function_test("sqrt", (1e-5, 1), 2e-7)
 
-    test_sin = make_unary_function_test("sin", (-10, 10), 1e-7)
-    test_cos = make_unary_function_test("cos", (-10, 10), 1e-7)
+    test_sin = make_unary_function_test("sin", (-10, 10), 2e-7)
+    test_cos = make_unary_function_test("cos", (-10, 10), 2e-7)
     test_asin = make_unary_function_test("asin", (-0.9, 0.9), 5e-7)
     test_acos = make_unary_function_test("acos", (-0.9, 0.9), 5e-7)
     test_tan = make_unary_function_test("tan", 
-- 
GitLab