Make sure barriers do not think they depend on themselves
algorithmsRequiredFor(name)
returns pointers to initialized algorithm instances required to be executed for the algorithm named name
-- this of course includes a pointer to the algorithm named name
. As a result, when these algorithms are used to populate the data dependencies for name
, the pointer to the algorithm named name
should not be included in that list, as otherwise it will never possible to create an ordering which allows name
to be executed...
Edited by Gerhard Raven