-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[Build] #16283
Comments
CMAKE_OSX_ARCHITECTURES is for macOS/iOS/tvOS/... . Do not use it on other platforms. See https://cmake.org/cmake/help/latest/variable/CMAKE_OSX_ARCHITECTURES.html |
If you want a 32-bit Win32 build, please make sure you have installed a 32-bit python and it is the only python in PATH. |
Hi,
I want the build for win 64 bits.
But the generated wheel is for win32
How to make a wheel for win 64?
This is the command I have run: build.bat --config RelWithDebInfo --build_shared_lib --parallel --cmake_generator "Visual Studio 17 2022" --use_dml --build_wheel --skip_tests
Il giorno 8 giu 2023, alle ore 18:48, Changming Sun ***@***.***> ha scritto:
Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
If you want a 32-bit Win32 build, please make sure you have installed a 32-bit python and it is the only python in PATH.
—
Reply to this email directly, view it on GitHub<#16283 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AYTFUHTBKGXDVCH4PW67VHTXKH67DANCNFSM6AAAAAAY642D5E>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Hi, it is not answered
Il giorno 8 giu 2023, alle ore 18:48, Changming Sun ***@***.***> ha scritto:
Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
Closed #16283<#16283> as completed.
—
Reply to this email directly, view it on GitHub<#16283 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AYTFUHS3LTUXY22ANAMK373XKH63XANCNFSM6AAAAAAY642D5E>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
If you want a 64-bit Windows build, please make sure you have installed a 64-bit python and it is the only python in PATH. |
Hi, I have also tried without this option but the result is the same. Please have you tried to reproduce the issue?
Thanks
Giovanni
Il giorno 8 giu 2023, alle ore 18:48, Changming Sun ***@***.***> ha scritto:
Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
CMAKE_OSX_ARCHITECTURES is for macOS/iOS/tvOS/... . Do not use it on other platforms. See https://cmake.org/cmake/help/latest/variable/CMAKE_OSX_ARCHITECTURES.html
—
Reply to this email directly, view it on GitHub<#16283 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AYTFUHSEGAHVRWGVLSSPYETXKH63VANCNFSM6AAAAAAY642D5E>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Yes, I have python 64 bits and windows 64 bits.
I will check if any other python is in the path. This is a good hint. Thanks
Il giorno 8 giu 2023, alle ore 20:09, Changming Sun ***@***.***> ha scritto:
Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
If you want a 64-bit Windows build, please make sure you have installed a 64-bit python and it is the only python in PATH.
—
Reply to this email directly, view it on GitHub<#16283 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AYTFUHUUM5M2UMZP3REPZMDXKIINHANCNFSM6AAAAAAY642D5E>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Hi @snnn
(base) C:\Users\gguasti>wmic os get osarchitecture but when I build using the command the generated wheel is named and if I try to install it using pip I get the error message I suspect there is a bug. Have you tried to reproduce the issue? how to force the build of a win64 wheel? |
This worked for me. |
omasoud's comment is the only correct answer; To make it easy, I just test : set Platform=x64 |
Describe the issue
I am building ONNX Runtime for DirectML EP
I am using this command:
build.bat --config RelWithDebInfo --build_shared_lib --parallel --cmake_generator "Visual Studio 17 2022" --use_dml --build_wheel --skip_tests --cmake_extra_defines CMAKE_OSX_ARCHITECTURES=x86_64
my python is 64 bits
my Windows OS is 64 bits
the generated wheel is named onnxruntime_directml-1.16.0-cp310-cp310-win32.whl
and I get this error when I pip install it:
>pip install C:\data\lavoro\MachineLearning\onnx\test2\onnxruntime\build\Windows\RelWithDebInfo\RelWithDebInfo\dist\onnxruntime_directml-1.16.0-cp310-cp310-win32.whl ERROR: onnxruntime_directml-1.16.0-cp310-cp310-win32.whl is not a supported wheel on this platform.
also tried with the following option
--cmake_extra_defines CMAKE_OSX_ARCHITECTURES=x86_64
but nothing changes
Urgency
yes unfortunately this is urgent
Target platform
Windows 64 bits, Python 3.10 64 bits
Build script
build.bat --config RelWithDebInfo --build_shared_lib --parallel --cmake_generator "Visual Studio 17 2022" --use_dml --build_wheel --skip_tests --cmake_extra_defines CMAKE_OSX_ARCHITECTURES=x86_64
Error / output
ERROR: onnxruntime_directml-1.16.0-cp310-cp310-win32.whl is not a supported wheel on this platform.
Visual Studio Version
Visual Studio 17 2022
GCC / Compiler Version
No response
The text was updated successfully, but these errors were encountered: