Repository navigation
Conversation
bosilca
force-pushed
the
topic/taskpool-trim-chores
branch
from
September 27, 2026 17:46
76fc723 to
2b06a53
Compare
This was referenced Sep 27, 2026
A task class that declares bodies for several device types leaves the choice of device to the runtime, and a caller had no way to narrow it. The PTG compiler had the same need for the device types a build does not support, and open-coded its own compaction of the incarnation arrays to get it. parsec_taskpool_trim_chores() takes a specification such as "potrf:cuda;trsm:cuda,hip", where "*" stands for every task class and "gpu" for every accelerator type, and removes those incarnations before anything looks at them. The result is a taskpool that reads like one whose tasks never declared those bodies, instead of one that offers them and turns them down a task at a time. A task class named by the specification but absent from the taskpool is reported and not an error, so one specification can be handed to several taskpools; emptying a task class is refused, as it would leave tasks that can never run. parsec_taskpool_drop_chores() does the removal from a device type mask and is what jdf2c now emits in place of its loop. It is backed by parsec_device_type_from_name(), which maps a device type name to its mask, and parsec_task_class_device_types(), which reports the types a task class has an incarnation for.
bosilca
force-pushed
the
topic/taskpool-trim-chores
branch
from
September 28, 2026 06:39
2b06a53 to
32839b2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lets a caller drop incarnations from a taskpool by device type or by body name, so a DSL can decide at runtime that a kernel is not to be used. Adds
tests/api/trim_choresfor coverage.Draft: another API is still to be added here.
Stacked on #811, whose single commit shows up here until it merges.