Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Conversation

@skimo-openhub
Copy link
Contributor

When mapping the code for copying arrays to/from shared memory to threads,
the band members of the copying schedule that iterate over
a tensor dimension of size 1 do not get mapped to a thread identifier.
This was handled by code in mapCopiesToThreads that is relatively
complicated and that needs to take into account situations
that may never arise in practice.

It is much simpler to make sure that those band members
do not even appear in the copying schedule, by removing
them while the copying schedule is being constructed in
insertCopiesUnder.

Sven Verdoolaege added 2 commits April 26, 2018 16:41
The promoted declaration information associated to
a given identifier of a promoted tensor reference group
is accessed in two locations, but only one of them
has an explicit check to see if this information is available.
Extract out a promotedDecl that performs the operation (with check)
consistently.
The main motivation, however, is to reduce the clutter inside
mapCopiesToThreads.
… front

When mapping the code for copying arrays to/from shared memory to threads,
the band members of the copying schedule that iterate over
a tensor dimension of size 1 do not get mapped to a thread identifier.
This was handled by code in mapCopiesToThreads that is relatively
complicated and that needs to take into account situations
that may never arise in practice.

It is much simpler to make sure that those band members
do not even appear in the copying schedule, by removing
them while the copying schedule is being constructed in
insertCopiesUnder.

Note that insertCopiesUnder now relies on promotedDecls_,
so the call to insertCopiesUnder needs to be moved after
the construction of promotedDecls_.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants