mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
[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:
@@ -672,7 +672,14 @@ elif paddle.device.is_compiled_with_custom_device("metax_gpu"):
|
||||
),
|
||||
)
|
||||
elif paddle.is_compiled_with_custom_device("intel_hpu"):
|
||||
pass
|
||||
setup(
|
||||
name="fastdeploy_ops",
|
||||
ext_modules=CppExtension(
|
||||
sources=[
|
||||
"gpu_ops/get_output.cc",
|
||||
]
|
||||
),
|
||||
)
|
||||
else:
|
||||
use_bf16 = envs.FD_CPU_USE_BF16 == "True"
|
||||
|
||||
|
||||
@@ -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
|
||||
chmod +x build.sh
|
||||
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
|
||||
echo "pip others"
|
||||
|
||||
Reference in New Issue
Block a user