Skip to content

Fix: DirectML device enumeration fails with --temp-dir option#13

Open
ssam18 wants to merge 1 commit intomlcommons:mainfrom
ssam18:fix/issue-8-temp-dir-device-enumeration
Open

Fix: DirectML device enumeration fails with --temp-dir option#13
ssam18 wants to merge 1 commit intomlcommons:mainfrom
ssam18:fix/issue-8-temp-dir-device-enumeration

Conversation

@ssam18
Copy link
Copy Markdown

@ssam18 ssam18 commented Jan 23, 2026

Description

Fixes #8

When --temp-dir is set to current directory (), the DirectML/DXCore device enumeration would fail because AddDllDirectory() returns an invalid handle when called with the current directory. This caused device enumeration to return an empty list, making even device ID 0 invalid and preventing benchmark initialization on NVIDIA RTX 5060 Laptop GPU and AMD Radeon 880M.

Fixes mlcommons#8

When --temp-dir is set to current directory (.), the DirectML/DXCore device
enumeration would fail because AddDllDirectory() returns an invalid handle.
This caused device enumeration to return empty list, making even device ID 0
invalid and preventing benchmark initialization.
@ssam18 ssam18 requested review from a team as code owners January 23, 2026 02:09
@github-actions
Copy link
Copy Markdown

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@swasson488
Copy link
Copy Markdown
Contributor

@mrxmartino to copy into dev repo and include in the next 1.6 RC build.

@swasson488
Copy link
Copy Markdown
Contributor

The Client working group is considering pulling this PR into its new builds. Thanks.

@ssam18
Copy link
Copy Markdown
Author

ssam18 commented Mar 24, 2026

Thank you for the update.

@ssam18
Copy link
Copy Markdown
Author

ssam18 commented Apr 2, 2026

@mrxmartino - Please let me know if this PR is merged.

@mrxmartino
Copy link
Copy Markdown
Contributor

@ssam18 It was merged, but during our internal testing, we found issues with device enumeration, inconsistent behaviour, or missing configurations in the GUI builds. The PR was reverted. We will revisit this PR after a new build.

Let's keep this open.

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.

[Bug] Phi3.5 Mini fails to initialize IHV with --temp-dir option (NVIDIA RTX 5060 Laptop & AMD Radeon 880M)

3 participants