Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

collapse host and device queues to single chrome trace track #375

Open
bashbaug opened this issue Aug 27, 2024 · 0 comments
Open

collapse host and device queues to single chrome trace track #375

bashbaug opened this issue Aug 27, 2024 · 0 comments

Comments

@bashbaug
Copy link
Contributor

Observed Behavior

The current default behavior for chrome traces is to put host API calls from each thread on their own "track", and device commands for each OpenCL command-queue on their own "track". This is useful for most multi-threaded applications that create a small pool of threads and command-queues, but it's bad for some other applications that create (and destroy) a lot of threads or command-queues.

For completeness, note that there are also controls for chrome performance timing "in stages" or "per kernel", but for this request we can assume that these controls are not set and hence not are not applicable.

Desired Behavior

For these classes of applications, add a control to "collapse" all device execution to a single track (per-device?). This provides a single device code synopsis regardless of how many command-queues are created. Consider "collapsing" all host API calls to a single track also, though device code execution is the number one priority.

Steps to Reproduce

Run an OpenCL application that creates and enqueues work to multiple command-queues targeting a single device with ChromePerformanceTiming enabled. Observe that each command-queue has its own "track".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant