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

Implement DML on device copy for Lora Parameters #22366

Closed
wants to merge 10 commits into from

Conversation

yuslepukhin
Copy link
Member

@yuslepukhin yuslepukhin commented Oct 9, 2024

Description

This change now supports copying lora parameters to DML EP memory when adapter is loaded.
The change incorporates necessary changes to DML EP.

Motivation and Context

Lora needs an ability to copy to DML EP memory.
Addresses: #22336

Co-authored-by: @PatriceVignola

void* dstData = dst.MutableDataRaw();
ID3D12Resource* srcData = GetD3D12ResourceFromAllocation(nullptr, src.DataRaw());

const uint64_t srcOffset = 0;

Check warning

Code scanning / PREfast

The const variable 'srcOffset' can be computed at compile-time. Consider using constexpr (con.5). Warning

The const variable 'srcOffset' can be computed at compile-time. Consider using constexpr (con.5).
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.

DML EP instance is required to exist while DML IDataTransfer is in use
2 participants