-
Notifications
You must be signed in to change notification settings - Fork 80
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
Compiler threw exception: Normalizer: Invalid local type for memory area #96
Comments
This means that there is some OpenCL C code that VC4C does not handle correctly:) Do you have access to the source code of the OpenCL kernel? I.e. you can set the environment variable |
Ah ah :D is there a way to find on which line the error occurred ? That's a pretty large collection of kernels (8000 lines) |
No, not really, at this point there is no association anymore between the intermediate code and the original source code positions. Judging by the error message, the variable accessed is a |
Ok I'll split the source by functions and one by one I'll try to build and check the result. |
So, by splitting by kernel functions, I was able to find the various problems (and some solutions):
Then, what I was able to fix:
So I fixed it by changing the declaration to a default address (NULL or 0 doesn't work) like
this one fails
meaning Any... comment ? |
First of all, thanks for the investigation:)
Yes,
This one, I fear, will be hard to fix, but I guess I should have a look at it. Can you post a full (minimal) kernel code that has this kind of code lines in it?
and
may be fixed by the latest commits on the devel branch. For the last one, what do you mean by "this one fails"? Does it not compile or does the execution fail? Here too, a full (minimal) kernel code example would be helpful. |
Hi,
I try to compile some existing OpenCL kernels (tested on NVIDIA GPUs) and during the compilation, I have this error:
What does it mean ?
Thanks!
The text was updated successfully, but these errors were encountered: