Skip to content
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] Unable to build onnxruntime from source (with oneDNN EP) #20971

Open
shreya-um opened this issue Jun 7, 2024 · 2 comments
Open

[Build] Unable to build onnxruntime from source (with oneDNN EP) #20971

shreya-um opened this issue Jun 7, 2024 · 2 comments
Labels
build build issues; typically submitted using template ep:oneDNN questions/issues related to DNNL EP stale issues that have not been addressed in a while; categorized by a bot

Comments

@shreya-um
Copy link

Describe the issue

Getting error error: package directory 'onnxruntime/backend' does not exist for command python3 setup.py bdist_wheel

Urgency

Urgent, I have deadlines for my Thesis submission.

Target platform

Linux, x86 6bits

Build script

Im trying to build onnxruntime from source Im following commands from https://onnxruntime.ai/docs/build/inferencing.html.

I ran build cmd
./build.sh --use_dnnl --config Release --build_shared_lib --parallel --compile_no_warning_as_error --skip_submodule_sync

Output - 100% tests passed, 0 tests failed out of 7

when I ran cmd python3 setup.py bdist_wheel
Im getting error error: package directory 'onnxruntime/backend' does not exist

Error / output

error: package directory 'onnxruntime/backend' does not exist

Visual Studio Version

No response

GCC / Compiler Version

No response

@shreya-um shreya-um added the build build issues; typically submitted using template label Jun 7, 2024
@github-actions github-actions bot added the ep:oneDNN questions/issues related to DNNL EP label Jun 7, 2024
@jywu-msft
Copy link
Member

jywu-msft commented Jun 16, 2024

try using --build_wheel instead
i.e.
./build.sh --use_dnnl --config Release --skip_tests --build_wheel --parallel --compile_no_warning_as_error --skip_submodule_sync

with your commandline above, you needed to build the python bindings with --enable_pybind and then you can build the wheel after that. (but you need to do it in your build directory)

--build_wheel conveniently does both within the build script. so it's easier to run the commandline example I have above.
note that --skip_tests skips running tests, so that failing python tests doesn't prevent the build from succeeding.

Copy link
Contributor

This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details.

@github-actions github-actions bot added the stale issues that have not been addressed in a while; categorized by a bot label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build issues; typically submitted using template ep:oneDNN questions/issues related to DNNL EP stale issues that have not been addressed in a while; categorized by a bot
Projects
None yet
Development

No branches or pull requests

2 participants