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

Added functionality to choose dml adapter by luid #1041

Merged

Conversation

DavitGrigoryan132
Copy link
Contributor

@DavitGrigoryan132 DavitGrigoryan132 commented Nov 6, 2024

Description: This PR adds functionality to allow users to specify a "DML" (DirectML) execution provider device adapter by providing the adapter's LUID (Locally Unique Identifier). Previously, the system would automatically select the most performant adapter by default. With this enhancement, users can now select a specific adapter by passing the luid_high_part and luid_low_part options, giving them greater control over device selection.

Key Changes:

Added support for selecting a DML execution provider device adapter using luid_high_part and luid_low_part.
Default behavior remains the same, choosing the most performant adapter unless these options are specified.

Motivation: This update provides more flexibility for users needing to target specific adapters, enhancing customizability in environments with multiple available adapters.

#1029

@natke
Copy link
Contributor

natke commented Nov 7, 2024

Thank you for this contribution. Can you please add a test/tests for the new functionality?

@pranavsharma
Copy link
Contributor

This should be reviewed by the DML team.

src/models/model.cpp Outdated Show resolved Hide resolved
@DavitGrigoryan132
Copy link
Contributor Author

DavitGrigoryan132 commented Nov 18, 2024

@pranavsharma @PatriceVignola Can you review it, please?

@baijumeswani baijumeswani merged commit 4819a8c into microsoft:main Nov 22, 2024
13 checks passed
@baijumeswani
Copy link
Collaborator

Thanks for your contribution @DavitGrigoryan132 :)

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.

5 participants