-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add Windows support #56
Conversation
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
@conda-forge-admin, please rerender |
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 don't have much experience packaging for Windows but maybe we can try to get things to build without the tests first?
Good point, I kind of left this in an incomplete state, as I think before going for Windows probably it could make sense to go for de-venderoing, that should simplify also the Windows build: #57 . |
Ahs sorry, I did not see your comment there. |
@traversaro are there any updates or do you have open questions? I think supporting Windows would be very nice! |
Sorry for the radio silence, see #57 (comment) for more context. I plan to work on this in the near future. |
@conda-forge-admin, please rerender |
Cool, Windows fails with:
While I could disable tests to save some space, let me check if there is some other way. |
I tried with b4a85b3 . |
@conda-forge-admin, please rerender |
Hi! This is the friendly automated conda-forge-linting service. I wanted to let you know that I linted all conda-recipes in your PR ( Here's what I've got... For recipe:
|
While debugging locally, I found quite a tricky problem. By default the onnxruntime build a
Why this happens? Basically because apparently Windows ships a To avoid this issue, probably we should rename |
@conda-forge-admin, please rerender |
Hi! This is the friendly automated conda-forge-webservice. I tried to rerender for you but ran into some issues. Please check the output logs of the latest rerendering GitHub actions workflow run for errors. You can also ping conda-forge/core for further assistance or try re-rendering locally. This message was generated by GitHub actions workflow run https://github.com/conda-forge/onnxruntime-feedstock/actions/runs/5234695625. |
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
@conda-forge-admin, please rerender |
Hi! This is the friendly automated conda-forge-webservice. I tried to rerender for you but ran into some issues. Please check the output logs of the latest rerendering GitHub actions workflow run for errors. You can also ping conda-forge/core for further assistance or try re-rendering locally. This message was generated by GitHub actions workflow run https://github.com/conda-forge/onnxruntime-feedstock/actions/runs/5234710097. |
We are almost there:
The compiler is out of heap space, so probably we need to reduce the number of concurrent threads. |
I implement this solution with patch 4a08914 . Linking with onnxruntime on Windows requires using (or searching for in the CMake case, see for example ami-iit/bipedal-locomotion-framework#686) the name |
Once/if the CI is happy/green, the PR is ready for review. |
Even with parallel 1, the |
As actually also Linux uses gtest/gmock from conda-forge, to be less invasive but just force the use of the vendored protobuf I pass the |
@conda-forge-admin, please rerender |
1 similar comment
@conda-forge-admin, please rerender |
For some reason the
However, I tested locally the package onnxruntime-1.15.0-py310h0b3afb7_1.conda and |
I tested this locally, and I think I was barking at the wrong tree, the problem were in the run_test.bat, I fixed some errors in ce3edc3, let's see if this fix the errors. |
Hi! This is the friendly automated conda-forge-linting service. I was trying to look for recipes to lint for you, but it appears we have a merge conflict. Please ping the 'conda-forge/core' team (using the @ notation in a comment) if you believe this is a bug. |
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
@conda-forge-admin, please rerender |
Hi! This is the friendly automated conda-forge-webservice. I tried to rerender for you but ran into some issues. Please check the output logs of the latest rerendering GitHub actions workflow run for errors. You can also ping conda-forge/core for further assistance or try re-rendering locally. This message was generated by GitHub actions workflow run https://github.com/conda-forge/onnxruntime-feedstock/actions/runs/5313547709. |
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.
Thanks so much for all your effort! Congratulations on finally getting to that ✅ -state! As I said earlier, I don't have experience in packaging for Windows. Maybe @xhochy or @janjagusch are in a better position in this regard?
I am afraid that the CI checks are actually not running due to a re-rendering problem. |
@conda-forge-admin, please rerender |
…nda-forge-pinning 2023.06.19.09.23.46
@conda-forge/onnxruntime the PR is now ready for review, I summarized the main things to know in the original PR message. |
Co-authored-by: Jan Tilly <[email protected]>
Thank you, @traversaro! |
Thanks to everyone that provided feedback and for merging the PR! |
Based on #10 .
Main important things to know:
onnxruntime.dll
is shipped by Windows inC:\Windows\system32\
, we can't use that name in our package. To avoid this problem, we rename our dll toonnxruntime_conda.dll
, see Add Windows support #56 (comment) .CMAKE_DISABLE_FIND_PACKAGE_Protobuf=ON
to make sure that the vendored Protobuf is used, see Add Windows support #56 (comment) .Checklist
0
(if the version changed)conda-smithy
(Use the phrase@conda-forge-admin, please rerender
in a comment in this PR for automated rerendering)