Skip to content
Snippets Groups Projects
Commit 9620c617 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Fix computation of check domains in the presence of boosting

parent 94656e0f
No related branches found
No related tags found
No related merge requests found
Pipeline #
from __future__ import division from __future__ import absolute_import, division, print_function
from __future__ import absolute_import
import six
from six.moves import range
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner" __copyright__ = "Copyright (C) 2012 Andreas Kloeckner"
...@@ -25,6 +22,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN ...@@ -25,6 +22,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE. THE SOFTWARE.
""" """
import six
from six.moves import range
from islpy import dim_type from islpy import dim_type
import islpy as isl import islpy as isl
...@@ -484,10 +483,14 @@ def check_implemented_domains(kernel, implemented_domains, code=None): ...@@ -484,10 +483,14 @@ def check_implemented_domains(kernel, implemented_domains, code=None):
.project_out_except(insn_inames, [dim_type.set])) .project_out_except(insn_inames, [dim_type.set]))
insn_domain = kernel.get_inames_domain(insn_inames) insn_domain = kernel.get_inames_domain(insn_inames)
insn_parameters = frozenset(insn_domain.get_var_names(dim_type.param))
assumptions, insn_domain = align_two(assumption_non_param, insn_domain) assumptions, insn_domain = align_two(assumption_non_param, insn_domain)
desired_domain = ((insn_domain & assumptions) desired_domain = ((insn_domain & assumptions)
.project_out_except(insn_inames, [dim_type.set])) .project_out_except(insn_inames, [dim_type.set])
.project_out_except(insn_parameters, [dim_type.param]))
insn_impl_domain = (insn_impl_domain
.project_out_except(insn_parameters, [dim_type.param]))
insn_impl_domain, desired_domain = align_two( insn_impl_domain, desired_domain = align_two(
insn_impl_domain, desired_domain) insn_impl_domain, desired_domain)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment