Skip to content

Commit

Permalink
Merge branch 'main' into rename_inames
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushikcfd authored Nov 17, 2021
2 parents b9f5b0f + 5208266 commit ce579b9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion loopy/target/ispc.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def map_subscript(self, expr, type_context):
# {{{ type registry

def fill_registry_with_ispc_types(reg, respect_windows, include_bool=True):
reg.get_or_register_dtype("bool", np.bool)
reg.get_or_register_dtype("bool", bool)

reg.get_or_register_dtype(["int8", "signed char", "char"], np.int8)
reg.get_or_register_dtype(["uint8", "unsigned char"], np.uint8)
Expand Down
2 changes: 1 addition & 1 deletion test/test_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def test_scan_library(ctx_factory, op_name, np_op):
assumptions="n>=1")

a = np.random.randn(20)
knl = lp.add_dtypes(knl, dict(a=np.float))
knl = lp.add_dtypes(knl, dict(a=np.float64))
knl = lp.realize_reduction(knl, force_scan=True)
evt, (res,) = knl(queue, a=a)

Expand Down
14 changes: 7 additions & 7 deletions test/test_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1442,8 +1442,8 @@ def test_stats_on_callable_kernel():
y[:] = matvec20x20(A[:,:], x[:])
""",
[
lp.GlobalArg("x,y", shape=(20,), dtype=np.float),
lp.GlobalArg("A", shape=(20, 20), dtype=np.float),
lp.GlobalArg("x,y", shape=(20,), dtype=np.float64),
lp.GlobalArg("A", shape=(20, 20), dtype=np.float64),
],
name="matvec")
caller = lp.merge([caller, callee])
Expand All @@ -1467,8 +1467,8 @@ def test_stats_on_callable_kernel_within_loop():
y[i, :] = matvec20x20(A[:,:], x[i, :])
""",
[
lp.GlobalArg("x,y", shape=(20, 20), dtype=np.float),
lp.GlobalArg("A", shape=(20, 20), dtype=np.float),
lp.GlobalArg("x,y", shape=(20, 20), dtype=np.float64),
lp.GlobalArg("A", shape=(20, 20), dtype=np.float64),
],
name="matmat")
caller = lp.merge([caller, callee])
Expand All @@ -1495,8 +1495,8 @@ def test_callable_kernel_with_substitution():
y[i, :] = matvec(20, A[:,:], x[i, :])
""",
[
lp.GlobalArg("x,y", shape=(20, 20), dtype=np.float),
lp.GlobalArg("A", shape=(20, 20), dtype=np.float),
lp.GlobalArg("x,y", shape=(20, 20), dtype=np.float64),
lp.GlobalArg("A", shape=(20, 20), dtype=np.float64),
],
name="matmat")
caller = lp.merge([caller, callee])
Expand All @@ -1518,7 +1518,7 @@ def test_no_loop_ops():
d = 2*c + a + b
""")

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

op_map = lp.get_op_map(knl, subgroup_size=SGS, count_redundant_work=True,
count_within_subscripts=True)
Expand Down

0 comments on commit ce579b9

Please sign in to comment.