-
Notifications
You must be signed in to change notification settings - Fork 3k
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
DirectML.dll load fails when executable path contains Non-English characters #9229
Merged
Conversation
This file contains 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
smk2007
requested review from
tiagoshibata,
ryanlai2,
zhangxiang1993 and
martinb35
September 30, 2021 17:57
fdwr
previously approved these changes
Sep 30, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unicode 👍.
martinb35
reviewed
Sep 30, 2021
martinb35
reviewed
Sep 30, 2021
martinb35
approved these changes
Sep 30, 2021
tiagoshibata
approved these changes
Sep 30, 2021
auto out_path = std::string(absolute_path); | ||
out_path.resize(idx); | ||
auto idx = std::distance(absolute_path, name); | ||
auto out_path = std::wstring(absolute_path); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think auto out_path = std::wstring(absolute_path, idx);
does one copy with the right size
smk2007
added a commit
that referenced
this pull request
Sep 30, 2021
…racters (#9229) * enable unicode dml * add wide string L prefix * Add Fail Fast back Co-authored-by: Sheil Kumar <[email protected]>
smk2007
added a commit
that referenced
this pull request
Oct 1, 2021
* Add full iOS job in package pipeline (#9036) * Add full ios xcframework job * create zip file of the xcframework * Bump up TVM version to avoid conflict with existing one (#9159) * Bump up tvm version * Bump up onnxruntime-tvm version There are some c++17 related fixes in TVM Co-authored-by: KeDengMS <[email protected]> * fix bug introduced by PR9130 (#9166) * make uwp store apps link to statically-linked crt desktop builds (#9182) Co-authored-by: Sheil Kumar <[email protected]> * #9182 removed the `--is_store_build` option but one place where that was used was missed. (#9219) This should fix the relevant packaging pipelines. * DirectML.dll load fails when executable path contains Non-English characters (#9229) * enable unicode dml * add wide string L prefix * Add Fail Fast back Co-authored-by: Sheil Kumar <[email protected]> * Fix Android build break after Virtual Environment update to 20210919 (#9163) Co-authored-by: Guoyu Wang <[email protected]> Co-authored-by: ke1337 <[email protected]> Co-authored-by: KeDengMS <[email protected]> Co-authored-by: George Wu <[email protected]> Co-authored-by: Sheil Kumar <[email protected]> Co-authored-by: Scott McKay <[email protected]>
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.
DirectML.dll load fails when executable path contains Non-English characters
Issue: DirectML.dll is loaded with LoadLibraryExA when it should be using LoadLibraryExW
Test: Windows AI builds correctly and loads correctly when built exes are run from paths containing unicode:
https://aiinfra.visualstudio.com/Lotus/_build/results?buildId=176800&view=results