Skip to content

Commit e6338d2

Browse files
committed
[Metax] fix build error
1 parent cb56d46 commit e6338d2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

build.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,11 @@ function copy_ops(){
159159
is_maca=`$python -c "import paddle; print(paddle.device.is_compiled_with_custom_device('metax_gpu'))"`
160160
if [ "$is_maca" = "True" ]; then
161161
DEVICE_TYPE="metax_gpu"
162-
mkdir -p ../fastdeploy/model_executor/ops/base
163-
cp -r ${OPS_TMP_DIR_BASE}/${WHEEL_BASE_NAME}/* ../fastdeploy/model_executor/ops/base
164162
cp -r ${TMP_PACKAGE_DIR}/* ../fastdeploy/model_executor/ops/gpu
165163
echo -e "MACA ops have been copy to fastdeploy"
166164
return
167165
fi
166+
168167
is_intel_hpu=`$python -c "import paddle; print(paddle.is_compiled_with_custom_device('intel_hpu'))"`
169168
if [ "$is_intel_hpu" = "True" ]; then
170169
DEVICE_TYPE="intel-hpu"

0 commit comments

Comments
 (0)