Skip to content

Commit ce579b9

Browse files
authored
Merge branch 'main' into rename_inames
2 parents b9f5b0f + 5208266 commit ce579b9

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

loopy/target/ispc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def map_subscript(self, expr, type_context):
133133
# {{{ type registry
134134

135135
def fill_registry_with_ispc_types(reg, respect_windows, include_bool=True):
136-
reg.get_or_register_dtype("bool", np.bool)
136+
reg.get_or_register_dtype("bool", bool)
137137

138138
reg.get_or_register_dtype(["int8", "signed char", "char"], np.int8)
139139
reg.get_or_register_dtype(["uint8", "unsigned char"], np.uint8)

test/test_scan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ def test_scan_library(ctx_factory, op_name, np_op):
324324
assumptions="n>=1")
325325

326326
a = np.random.randn(20)
327-
knl = lp.add_dtypes(knl, dict(a=np.float))
327+
knl = lp.add_dtypes(knl, dict(a=np.float64))
328328
knl = lp.realize_reduction(knl, force_scan=True)
329329
evt, (res,) = knl(queue, a=a)
330330

test/test_statistics.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,8 +1442,8 @@ def test_stats_on_callable_kernel():
14421442
y[:] = matvec20x20(A[:,:], x[:])
14431443
""",
14441444
[
1445-
lp.GlobalArg("x,y", shape=(20,), dtype=np.float),
1446-
lp.GlobalArg("A", shape=(20, 20), dtype=np.float),
1445+
lp.GlobalArg("x,y", shape=(20,), dtype=np.float64),
1446+
lp.GlobalArg("A", shape=(20, 20), dtype=np.float64),
14471447
],
14481448
name="matvec")
14491449
caller = lp.merge([caller, callee])
@@ -1467,8 +1467,8 @@ def test_stats_on_callable_kernel_within_loop():
14671467
y[i, :] = matvec20x20(A[:,:], x[i, :])
14681468
""",
14691469
[
1470-
lp.GlobalArg("x,y", shape=(20, 20), dtype=np.float),
1471-
lp.GlobalArg("A", shape=(20, 20), dtype=np.float),
1470+
lp.GlobalArg("x,y", shape=(20, 20), dtype=np.float64),
1471+
lp.GlobalArg("A", shape=(20, 20), dtype=np.float64),
14721472
],
14731473
name="matmat")
14741474
caller = lp.merge([caller, callee])
@@ -1495,8 +1495,8 @@ def test_callable_kernel_with_substitution():
14951495
y[i, :] = matvec(20, A[:,:], x[i, :])
14961496
""",
14971497
[
1498-
lp.GlobalArg("x,y", shape=(20, 20), dtype=np.float),
1499-
lp.GlobalArg("A", shape=(20, 20), dtype=np.float),
1498+
lp.GlobalArg("x,y", shape=(20, 20), dtype=np.float64),
1499+
lp.GlobalArg("A", shape=(20, 20), dtype=np.float64),
15001500
],
15011501
name="matmat")
15021502
caller = lp.merge([caller, callee])
@@ -1518,7 +1518,7 @@ def test_no_loop_ops():
15181518
d = 2*c + a + b
15191519
""")
15201520

1521-
knl = lp.add_dtypes(knl, {"a": np.float, "b": np.float})
1521+
knl = lp.add_dtypes(knl, {"a": np.float64, "b": np.float64})
15221522

15231523
op_map = lp.get_op_map(knl, subgroup_size=SGS, count_redundant_work=True,
15241524
count_within_subscripts=True)

0 commit comments

Comments
 (0)