onnxruntime icon indicating copy to clipboard operation
onnxruntime copied to clipboard

[build][cann] Fix CANN provider build failure

Open shakhat opened this issue 1 year ago • 1 comments
trafficstars

Description

This patch adds Python headers to CANN provider dependencies when building a library with both training and Python bindings.

Motivation and Context

Fixes #20697

shakhat avatar May 16 '24 12:05 shakhat

+@wangshuai09 , @zhangsibo1129 Is --enabling_training --use_cann a valid supported combination?

jywu-msft avatar May 21 '24 02:05 jywu-msft

+@wangshuai09 , @zhangsibo1129 Is --enabling_training --use_cann a valid supported combination? Sorry for the slow reply, the training ability is not adapted, so the --enabling_training is not supported.

wangshuai09 avatar May 26 '24 11:05 wangshuai09

+@wangshuai09 , @zhangsibo1129 Is --enabling_training --use_cann a valid supported combination?

Sorry for the slow reply, the training ability is not adapted, so the --enabling_training is not supported.

Ok, I see. My goal was to build one package that I can install in different environments (and CANN inference is one of them). Otherwise I have to build different artifacts for different use cases.

shakhat avatar May 26 '24 11:05 shakhat