|
32 | 32 | @pytest.mark.parametrize( |
33 | 33 | "ctype_str,dtype,ctypes_ctor", |
34 | 34 | [ |
35 | | - ("short", dpt.dtype("i2"), ctypes.c_short), |
36 | | - ("int", dpt.dtype("i4"), ctypes.c_int), |
37 | | - ("unsigned int", dpt.dtype("u4"), ctypes.c_uint), |
38 | | - ("long", dpt.dtype(np.longlong), ctypes.c_longlong), |
39 | | - ("unsigned long", dpt.dtype(np.ulonglong), ctypes.c_ulonglong), |
| 35 | + # ("short", dpt.dtype("i2"), ctypes.c_short), |
| 36 | + # ("int", dpt.dtype("i4"), ctypes.c_int), |
| 37 | + # ("unsigned int", dpt.dtype("u4"), ctypes.c_uint), |
| 38 | + # ("long", dpt.dtype(np.longlong), ctypes.c_longlong), |
| 39 | + # ("unsigned long", dpt.dtype(np.ulonglong), ctypes.c_ulonglong), |
40 | 40 | ("float", dpt.dtype("f4"), ctypes.c_float), |
41 | | - ("double", dpt.dtype("f8"), ctypes.c_double), |
| 41 | + # ("double", dpt.dtype("f8"), ctypes.c_double), |
42 | 42 | ], |
43 | 43 | ) |
44 | 44 | def test_create_program_from_source(ctype_str, dtype, ctypes_ctor): |
@@ -92,11 +92,12 @@ def test_create_program_from_source(ctype_str, dtype, ctypes_ctor): |
92 | 92 | host_dt, device_dt = timer.dt |
93 | 93 | assert type(host_dt) is float and type(device_dt) is float |
94 | 94 | c_np = dpt.asnumpy(c) |
95 | | - diff = c_np - ref_c |
| 95 | + print(c_np) |
| 96 | + print(ref_c) |
96 | 97 | assert np.allclose( |
97 | 98 | dpt.asnumpy(c), ref_c |
98 | | - ), "Failed for {} with diffs between {} and {}".format( |
99 | | - r, np.max(diff), np.min(diff) |
| 99 | + ), "Failed for {}, a_np was {}, b_np was {}".format( |
| 100 | + r, a_np, b_np |
100 | 101 | ) |
101 | 102 |
|
102 | 103 | for gr, lr in ( |
|
0 commit comments