mlcommons / inference

Reference implementations of MLPerf™ inference benchmarks
https://mlcommons.org/en/groups/inference
Apache License 2.0
1.21k stars 527 forks source link

loadgen 3.0 py_demo_offline.py Segmentation Fault #1337

Open NEUCHIPS-Kevin-Kuo opened 1 year ago

NEUCHIPS-Kevin-Kuo commented 1 year ago

Hi Pals,

I have built the mlperf-loadgen v3.0 module and installed it in python 3.9.15. I executed the py_demo_offline.py example, which ran into a segmentation fault. All the other demo.py (py_demo_single_stream.py, py_demo_multi_stream.py, py_demo_server.py) work perfectly.

Is there any solution?

Sincerely, Kevin

arjunsuresh commented 1 year ago

Hi Kevin, Can you please point to the py_demo_offline.py which you are referring to?

dongsung-neubla commented 11 months ago

Any update for this, I have the same segment fault issue for running loadgen/demos/py_demo_offline.py @arjunsuresh

Fatal Python error: Segmentation fault

Thread 0x00007fe34a258640 (most recent call first): File "/workspace/dev/inference/loadgen/demos/py_demo_offline.py", line 40 in process_query_async File "/opt/.pyenv/versions/3.9.10/lib/python3.9/threading.py", line 910 in run File "/opt/.pyenv/versions/3.9.10/lib/python3.9/threading.py", line 973 in _bootstrap_inner File "/opt/.pyenv/versions/3.9.10/lib/python3.9/threading.py", line 930 in _bootstrap

Thread 0x00007fe34c64cb80 (most recent call first): File "/workspace/dev/inference/loadgen/demos/py_demo_offline.py", line 71 in main File "/opt/.pyenv/versions/3.9.10/lib/python3.9/site-packages/absl/app.py", line 254 in _run_main File "/opt/.pyenv/versions/3.9.10/lib/python3.9/site-packages/absl/app.py", line 308 in run File "/workspace/dev/inference/loadgen/demos/py_demo_offline.py", line 77 in Segmentation fault (core dumped)

It might be related with my retinanet offline does not work either