-
Notifications
You must be signed in to change notification settings - Fork 40
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
classification segmentation fault when calling Caffe::SetDevices #99
Comments
Have you tried to run it under valgrind ? |
By the way, what is the device? |
And Android NDK version? |
I use valgrind compiled for my device (ARV-v7a) as described here |
I will try to rebuild/run clean ck-caffe version soon on my Samsung S7 ... |
@DVEfremov I have not tried valgrind. I will update this thread after I use valgrind. |
@gfursin
|
@gfursin |
I just found the issue: there was a file Not sure what's the real culprit, but it solved my problem now. Thanks for quick reply - I will close the issue. |
This file is related to OpenCL kernel caching via ViannaCL. After deleting this file and running classification again, do you see a newly generated viennacl_cache_{some hash} file? |
Also, we may need to add an option in the CK to clear such cache files (or maybe remove them automatically during ck-caffe reinstallation for Android) - I need to think about that ... |
@gfursin and @psyhtest What I did was the following: |
Thanks a lot for reporting - that's quite strange though. I will test it tonight on my S7. |
I will give it a try. |
I'm testing Caffe with OpenCL on an android device. When I run the program classification, there was a segmentation fault.
Here is how I compiled and ran the program:
Here is the information of the segmentation fault:
Any advice?
The text was updated successfully, but these errors were encountered: