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

Mdapi multi adapter #394

Merged
merged 13 commits into from
Dec 1, 2024
Merged

Mdapi multi adapter #394

merged 13 commits into from
Dec 1, 2024

Conversation

bashbaug
Copy link
Contributor

@bashbaug bashbaug commented Dec 1, 2024

Description of Changes

Adds support for MDAPI metric collection on systems with multiple GPUs. Currently, metric collection is only supported for one GPU at a time, and the GPU to use to collect metrics may be specified by using the control DevicePerfCounterAdapterIndex, or by passing --mdapi-device and an adapter index to cliloader. The available GPUs for metric collection and their adapter indices may be specified by passing --mdapi-devices to cliloader.

Note: On Linux, for some GPUs, metric collection requires the out-of-tree i915 kernel mode driver.

All of this information has been added to the OpenCL Intercept Layer MDAPI documentation.

Testing Done

Tested on Windows and Linux with a simple application on a system with an integrated GPU and a discrete GPU. Verified that metrics could be collected on both GPUs.

@bashbaug bashbaug merged commit 87e5440 into intel:main Dec 1, 2024
7 checks passed
@bashbaug bashbaug deleted the mdapi-multi-adapter branch December 1, 2024 20:05
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

Successfully merging this pull request may close these issues.

1 participant