RapidOCR icon indicating copy to clipboard operation
RapidOCR copied to clipboard

test_ort_cuda_warning and test_ort_dml_warning segfault when no gpu availaible

Open Pleune opened this issue 8 months ago • 2 comments

问题描述 / Problem Description

Building with onnxruntime with cuda, but no GPU in the system. These two tests segfault.

运行环境 / Runtime Environment

Nix, as in https://github.com/NixOS/nixpkgs/pull/382920

复现代码 / Reproduction Code

n/a

可能解决方案 / Possible solutions

In the tests, skip the code if onnxruntime shows no GPU available.

Pleune avatar Apr 14 '25 14:04 Pleune

Are you sure you didn't mention the wrong repository?

SWHL avatar Apr 15 '25 07:04 SWHL

Are you sure you didn't mention the wrong repository?

Yes the tests that fail are here https://github.com/RapidAI/RapidOCR/blob/6fce7c841cf55b724db5a1756c3f58fe24e05b29/python/tests/test_ort.py#L46 https://github.com/RapidAI/RapidOCR/blob/6fce7c841cf55b724db5a1756c3f58fe24e05b29/python/tests/test_ort.py#L38

Pleune avatar Apr 15 '25 21:04 Pleune

In the latest code, I had removed those two unit testings

SWHL avatar Oct 11 '25 13:10 SWHL