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] [CANN] Failed to build CANN provider with training and Python bindings #20697

Open
shakhat opened this issue May 16, 2024 · 0 comments · May be fixed by #20698
Open

[Build] [CANN] Failed to build CANN provider with training and Python bindings #20697

shakhat opened this issue May 16, 2024 · 0 comments · May be fixed by #20698
Labels
build build issues; typically submitted using template ep:CANN issues related to CANN EO

Comments

@shakhat
Copy link

shakhat commented May 16, 2024

Describe the issue

The build fails when the library is built with CANN provider, training and Python bindings.

Urgency

No response

Target platform

aarch64+npu

Build script

./build.sh --parallel 40 --use_cann --enable_training --enable_pybind --build_wheel

Error / output

In file included from /home/ilya/work/onnxruntime/orttraining/orttraining/core/framework/torch/torch_proxy.h:10,                                                                     
                 from /home/ilya/work/onnxruntime/orttraining/orttraining/training_ops/cpu/torch/torch_custom_function_kernel_base.h:16,                                             
                 from /home/ilya/work/onnxruntime/onnxruntime/core/providers/shared_library/provider_bridge_provider.cc:57:                                                          
/home/ilya/work/onnxruntime/orttraining/orttraining/core/framework/torch/python_common.h:16:10: fatal error: Python.h: No such file or directory
   16 | #include <Python.h>
      |          ^~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/onnxruntime_providers_cann.dir/build.make:426: CMakeFiles/onnxruntime_providers_cann.dir/home/ilya/work/onnxruntime/onnxruntime/core/providers/shared_library/provider_bridge_provider.cc.o] Error 1

Visual Studio Version

No response

GCC / Compiler Version

No response

@shakhat shakhat added the build build issues; typically submitted using template label May 16, 2024
@shakhat shakhat linked a pull request May 16, 2024 that will close this issue
@sophies927 sophies927 added the ep:CANN issues related to CANN EO label May 16, 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:CANN issues related to CANN EO
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants