Skip to content

Conversation

@umireon
Copy link
Collaborator

@umireon umireon commented Nov 6, 2025

I have fixed Windows build and confirmed to work it stably.

DirectML support on ONNX Runtime is deprecated and having DirectML breaks our plugin so that DirectML support in our plugin is also removed.

Ubuntu build still broken and it will be fixed later.

Updated CMakeLists.txt to improve ONNX Runtime linking for Apple and MSVC platforms, including explicit handling of shared libraries and provider dependencies. Commented out DML provider code in ort-session-utils.cpp for Windows, likely due to build or compatibility issues.
Introduces src/Module.cpp to handle plugin load/unload events and custom DLL delay loading on Windows. Updates CMakeLists.txt to include the new source file and removes 'delayimp' from link libraries. Modifies plugin-main.c to call PluginLoaded and PluginUnloaded during module load/unload.
Renamed src/Module.cpp to src/DelayLoad.cpp and updated CMakeLists.txt to reference the new filename. Removed PluginLoaded and PluginUnloaded calls from plugin-main.c to streamline plugin load/unload logic.
Adds installation of ONNX Runtime DLLs and PDBs to the Windows build in CMakeLists.txt. Refactors DelayLoad.cpp to resolve and load onnxruntime.dll from a specific plugin directory, improving reliability of DLL loading for the plugin.
Reformatted DelayLoad.cpp for consistent indentation and style. Updated CMakeLists.txt to improve readability of the install() command by reformatting the file list.
@umireon umireon requested a review from royshil November 6, 2025 05:16
@umireon
Copy link
Collaborator Author

umireon commented Nov 6, 2025

@royshil Managed to fix it on Windows.

Deleted CMake scripts for ONNX Runtime integration and removed DirectML (DML) support from code, localization files, and documentation. This simplifies GPU provider options and cleans up unused Windows-specific code paths.
Copy link
Owner

@royshil royshil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool!

@umireon umireon merged commit 387733c into main Nov 6, 2025
7 of 8 checks passed
@umireon umireon deleted the umireon/fix-windows-onnxruntime branch November 7, 2025 15:41
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.

3 participants