Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault in CPU mode (-g -1), not happen in nihui's repo #4

Closed
knyipab opened this issue May 15, 2024 · 3 comments
Closed

Segfault in CPU mode (-g -1), not happen in nihui's repo #4

knyipab opened this issue May 15, 2024 · 3 comments

Comments

@knyipab
Copy link

knyipab commented May 15, 2024

Grateful for your help. On (my) Android device, CPU typically runs rife-ncnn-vulkan faster than GPU, so it's meaningful to fix the bug.

I tested with this command

rife-ncnn-vulkan -0 0.png -1 1.png -o output-cpu.png -m rife-v4.6 -g -1 -v
  • OS: Termux (Android), with LD_PRELOAD=/system/lib64
  • Hardware: Samsung Z Fold5, Snapdragon 8 Gen 2, Adreno 740

If you are happy to run try on your Android phone (or emulator), you can install the Termux package builds from my actions:

TNTwise/rife-ncnn-vulkan

Failed, log:

[0 Adreno (TM) 740]  queueC=0[3]  queueG=0[3]  queueT=0[3]
[0 Adreno (TM) 740]  bugsbn1=1  bugbilz=0  bugcopc=0  bugihfa=0
[0 Adreno (TM) 740]  fp16-p/s/u/a=1/1/0/1  int8-p/s/u/a=1/1/0/1
[0 Adreno (TM) 740]  subgroup=64  basic/vote/ballot/shuffle=1/1/1/1
[0 Adreno (TM) 740]  fp16-8x8x16/16x8x8/16x8x16/16x16x16=0/0/0/0
Segmentation fault

nihui/rife-ncnn-vulkan

Succeeded, log:

[0 Adreno (TM) 740]  queueC=0[3]  queueG=0[3]  queueT=0[3]
[0 Adreno (TM) 740]  bugsbn1=1  bugbilz=0  bugcopc=0  bugihfa=0
[0 Adreno (TM) 740]  fp16-p/s/a=1/1/1  int8-p/s/a=1/1/1
[0 Adreno (TM) 740]  subgroup=64  basic=1  vote=1  ballot=1  shuffle=1
0.png 1.png 0.500000 -> output-cpu.png done

@TNTwise
Copy link
Owner

TNTwise commented May 15, 2024

This is most likely ncnn version, you would have to change out the submodule for something closer to the original rife ncnn repo.

@TNTwise
Copy link
Owner

TNTwise commented May 15, 2024

I will swap submodules and see if cpu works on linux.

@TNTwise
Copy link
Owner

TNTwise commented May 15, 2024

I tested and it is working with CPU, closing. Please say if this does not fix it for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants