DIOPI测试算子失败
tangpanyu opened this issue · 1 comments
tangpanyu commented
测试脚本:
# 只测试 relu
python main.py --mode gen_data --fname relu
python main.py --mode gen_case --fname relu
python main.py --mode run_test
报错:
(dipu) root@node18:/home/HwHiAiUser/code/DIOPI/diopi_test/python# python main.py --mode run_test
ImportError while loading conftest '/home/HwHiAiUser/code/DIOPI/diopi_test/python/conftest.py'.
conftest.py:8: in <module>
from conformance.diopi_runtime import diopi_rt_init, default_context
conformance/diopi_runtime.py:7: in <module>
from diopilib import (
diopilib/__init__.py:1: in <module>
from .export_runtime import *
E ImportError: /home/HwHiAiUser/code/deeplink.framework/dipu/third_party/DIOPI/impl/lib/libdiopi_impl.so: undefined symbol: _ZN6caffe26detail23uint16_t_metadata_indexE
python环境:
Package Version
------------------ -----------
absl-py 2.1.0
attrs 23.2.0
auto-tune 0.1.0
certifi 2024.7.4
charset-normalizer 3.3.2
cloudpickle 3.0.0
dataflow 0.0.1
decorator 5.1.1
einops 0.8.0
exceptiongroup 1.2.2
filelock 3.13.1
fsspec 2024.2.0
greenlet 3.0.3
hccl 0.1.0
hccl-parser 0.1
idna 3.7
iniconfig 2.0.0
Jinja2 3.1.3
MarkupSafe 2.1.5
mpmath 1.3.0
msadvisor 1.0.0
networkx 3.2.1
numpy 1.23.1
op-compile-tool 0.1.0
op-gen 0.1
op-test-frame 0.1
opc-tool 0.1.0
packaging 24.1
pandas 2.2.2
pillow 10.4.0
pip 24.1.2
pluggy 1.5.0
psutil 6.0.0
pytest 8.3.1
pytest-testreport 1.1.6
python-dateutil 2.9.0.post0
pytz 2024.1
PyYAML 6.0.1
requests 2.32.3
schedule-search 0.0.1
scipy 1.13.1
setuptools 69.5.1
six 1.16.0
SQLAlchemy 2.0.31
sympy 1.12
synr 0.5.0
te 0.4.0
tomli 2.0.1
torch 2.1.0
torchvision 0.16.0
tornado 6.4.1
typing_extensions 4.9.0
tzdata 2024.1
urllib3 2.2.2
wheel 0.43.0
开发环境:docker容器
Linux node18 4.19.90-52.15.v2207.ky10.aarch64 #1 SMP Thu Nov 24 15:59:41 CST 2022 aarch64 aarch64 aarch64 GNU/Linux
(dipu) root@node18:/home/HwHiAiUser/code/DIOPI/diopi_test/python# gcc --version
gcc (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ```
NeosZhang commented
您好,
根据报错信息,c++filt _ZN6caffe26detail23uint16_t_metadata_indexE 得到caffe2::detail::uint16_t_metadata_index,
这个是torch里面的符号。
可能导致报错的原因是编译diopi和运行diopi_test时的torch版本不同。
请确认编译diopi的环境中的torch版本与运行时一致。
可以尝试删除build文件并重新编译。