FastDeploy icon indicating copy to clipboard operation
FastDeploy copied to clipboard

c++多线程推理coredump

Open bert-y opened this issue 1 year ago • 1 comments

环境

  • 【FastDeploy版本】: fastdeploy-linux-gpu-1.0.7
  • 【系统平台】: Linux x64(cenots8)
  • 【硬件】: NVIDIA RTX 4000 SFF Ada, CUDA 11.2 CUDNN 8.2
  • 【编译语言】: C++

问题日志及出现问题的操作流程

  • 编译官方测试demo:multi_thread_demo
    • 运行一个线程推理 ./multi_thread_demo ResNet50_vd_infer ./images/ 1 1 正常输出结果
    • 运行两个线程推理 ./multi_thread_demo ResNet50_vd_infer ./images/ 1 2 产生: Segmentation fault (core dumped)

bert-y avatar Apr 27 '25 02:04 bert-y

替换成paddle inference 3.0的版本编译后,多线程推理就不崩溃了,先关闭了,给同样碰到的人一点思路。谢谢,打扰了。

bert-y avatar Apr 28 '25 02:04 bert-y