[BugFix] Fixed build script issue on Intel HPU platforms (#5455)

* [INTEL HPU]  Fixed build script issue for non-gpu platforms

Signed-off-by: Luo, Focus <focus.luo@intel.com>

* [INTEL HPU] PR CI HPU will not use fixed version of fastdeploy_intel_hpu

Signed-off-by: Luo, Focus <focus.luo@intel.com>

---------

Signed-off-by: Luo, Focus <focus.luo@intel.com>
Co-authored-by: YuBaoku <49938469+EmmonsCurse@users.noreply.github.com>
This commit is contained in:
FocusLuo
2025-12-11 16:36:37 +08:00
committed by GitHub
parent e58fed3665
commit c3aaa7e441
2 changed files with 9 additions and 2 deletions

View File

@@ -672,7 +672,14 @@ elif paddle.device.is_compiled_with_custom_device("metax_gpu"):
), ),
) )
elif paddle.is_compiled_with_custom_device("intel_hpu"): elif paddle.is_compiled_with_custom_device("intel_hpu"):
pass setup(
name="fastdeploy_ops",
ext_modules=CppExtension(
sources=[
"gpu_ops/get_output.cc",
]
),
)
else: else:
use_bf16 = envs.FD_CPU_USE_BF16 == "True" use_bf16 = envs.FD_CPU_USE_BF16 == "True"

View File

@@ -36,7 +36,7 @@ wget -q https://paddle-qa.bj.bcebos.com/suijiaxin/HPU/third-party/cutlass.tar.gz
wget -q https://paddle-qa.bj.bcebos.com/suijiaxin/HPU/third-party/json.tar.gz && tar -xzf json.tar.gz -C custom_ops/third_party/ && mv custom_ops/third_party/json custom_ops/third_party/nlohmann_json wget -q https://paddle-qa.bj.bcebos.com/suijiaxin/HPU/third-party/json.tar.gz && tar -xzf json.tar.gz -C custom_ops/third_party/ && mv custom_ops/third_party/json custom_ops/third_party/nlohmann_json
chmod +x build.sh chmod +x build.sh
bash build.sh || exit 1 bash build.sh || exit 1
pip install dist/fastdeploy_intel_hpu-2.3.0.dev0-py3-none-any.whl --force-reinstall pip install dist/fastdeploy_intel_hpu-*.whl --force-reinstall
#to install dependencies #to install dependencies
echo "pip others" echo "pip others"