Skip to content

Commit

Permalink
get_op_map/get_mem_access_map: remove deprecated numpy_types arg
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener authored and inducer committed Dec 1, 2021
1 parent 3b34e10 commit 752d758
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions loopy/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1731,7 +1731,7 @@ def _get_op_map_for_single_kernel(knl, callables_table,
return op_map


def get_op_map(program, numpy_types=True, count_redundant_work=False,
def get_op_map(program, count_redundant_work=False,
count_within_subscripts=True, subgroup_size=None,
entrypoint=None):

Expand Down Expand Up @@ -1804,11 +1804,6 @@ def get_op_map(program, numpy_types=True, count_redundant_work=False,
# make strides valid. Those also need to go through type inference.
program = infer_unknown_types(program, expect_completion=True)

if numpy_types is not None:
from warnings import warn
warn("numpy_types is being ignored and will be removed in 2020.",
DeprecationWarning, stacklevel=2)

return _get_op_map_for_single_kernel(
program[entrypoint], program.callables_table,
count_redundant_work=count_redundant_work,
Expand Down Expand Up @@ -1924,7 +1919,7 @@ def _get_mem_access_map_for_single_kernel(knl, callables_table,
return access_map


def get_mem_access_map(program, numpy_types=None, count_redundant_work=False,
def get_mem_access_map(program, count_redundant_work=False,
subgroup_size=None, entrypoint=None):
"""Count the number of memory accesses in a loopy kernel.
Expand Down Expand Up @@ -2022,11 +2017,6 @@ def get_mem_access_map(program, numpy_types=None, count_redundant_work=False,
# make strides valid. Those also need to go through type inference.
program = infer_unknown_types(program, expect_completion=True)

if numpy_types is not None:
from warnings import warn
warn("numpy_types is being ignored and will be removed in 2020.",
DeprecationWarning, stacklevel=2)

return _get_mem_access_map_for_single_kernel(
program[entrypoint], program.callables_table,
count_redundant_work=count_redundant_work,
Expand Down

0 comments on commit 752d758

Please sign in to comment.