-
Notifications
You must be signed in to change notification settings - Fork 81
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
clBuildProgram ERROR #42
Comments
The error message says the compiler is unable to map all locals to registers. This is probably due to the fact that the kernel is to complex for the current implementation of register allocation to handle. A side note: the attribute |
I will try to make sure that functions have only one return. Maybe that will help? Instead of: I will use: I am testing this right now, I will update this issue once I will make sure it works. Thanks a lot! |
Unfortunately, it is still the issue. On mac and pc, it works just fine. The question is how to reduce complexity and/or make it compile correctly?
|
From time to time it works... like 1/10 tries and that is strange to me. It is quite fast but is wrong on mac or pc the detection is different and a frog is correctly classified. Thanks a lot for your work, I will be working on that maybe I found how to reduce the complexity of the code? root@raspberrypi:~/cifar# ../darknet/darknet classifier predict cfg/cifar.data cfg/cifar_small_test.cfg ../weights/cifar_small.weights data/cifar/test/4882_frog.png |
Yeah, the register allocation is not deterministic... :)
That is to be expected, the code generated is not yet necessarily completely correct. |
I hope below helps you ;-). Thank you and keep going on this! Device ID: 0 TEST CPU: TEST GPU: |
This one looks like
This makes no sense, since the result is correct... |
Tests are feed-forward one, the output of each is given to the input to the next. N = 1. __kernel void test_kernel(int N, __global float *input, __global float *output, __global float *expected)
} Thanks! |
Hi I am working on RPI support on the fork of DarkNet at https://github.com/sowson/darknet in Makefile I enabled RPI=1 and disabled OPENCV=0 after installation of VC4CL and make the project I am trying to run it but without success. One of OpenCL program did not compile in runtime others are fine.
terminate called without an active exception
Aborted
EDIT: attribute is an
__attribute__
Can you help? in CODE section above is the code I am trying to compile/build. Thanks!
The text was updated successfully, but these errors were encountered: