Skip to content

DPC++ daily 2022-11-22

Pre-release
Pre-release
Compare
Choose a tag to compare
@bb-sycl bb-sycl released this 22 Nov 17:34
· 118552 commits to sycl since this release
dcc2ffc
[SYCL] Fix ModuleSplitterBase::totalSplits usage (#7485)

`ModuleSplitterBase::totalSplits` method returns the amount of
_remaining_ splits, i.e. every call to `ModuleSplitterBase::nextSplit`
decrements that value.

Fixed an incorrect initialization of `SplitByMode` and
`SplitByOptionalFeatures` variables by re-arranging code so we ask for
amount of splits _before_ we extract them. Previously, those two
variables were always initialized with `false`: from what I see in a
code this shouldn't have resulted in any major issues, but it caused a
problem in a downstream.

Additionally renamed `totalSplits` into `remainingSplits` to avoid
possible confusion in the future.