MNN icon indicating copy to clipboard operation
MNN copied to clipboard

segmentation fault when running benchmark.out with opencl in android

Open twmht opened this issue 7 years ago • 4 comments

Hi,

I have built MNN libraries and tried to run benchmark.out on my Android device (HTC-10) and RK3399 with android.

CPU works fine. But OPENCL would throw segmentation fault.

I just changed the forward type and keep the other parameter unchanged.

any idea?

twmht avatar Sep 11 '19 03:09 twmht

segmentation fault occurs in https://github.com/alibaba/MNN/blob/master/benchmark/benchmark.cpp#L136

twmht avatar Sep 11 '19 03:09 twmht

by the way, vulkan type works fine in my HTC-10.

twmht avatar Sep 11 '19 06:09 twmht

the program crash with inception-v3.mnn.

turning on DEBUG mode,

...
===> compute shape: InceptionV3/Logits/SpatialSqueeze, [90]
Inputs:
1, 1, 1, 1001,
Outputs:
1, 1001,
Segmentation fault

twmht avatar Sep 11 '19 07:09 twmht

The bug has been solved. Please update the code in a few days and try again

hacker-joe avatar Sep 23 '19 05:09 hacker-joe