mtchamengo / aparapi

Automatically exported from code.google.com/p/aparapi
Other
0 stars 0 forks source link

OpenCL conversion process fails to correctly pick up static array from base class for use by Kernel.run() function. #101

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile and run attached source files
2. Observe C compiler errors due to incorrectly generated OpenCL C code
3.

What is the expected output? What do you see instead?
Program should run with no errors.

Instead, the OpenCL C compiler is unable to compile the generated code due to 
missing declaration.

What version of the product are you using? On what operating system?
Latest trunk build (r1116)

Please provide any additional information below.

Here is the error output generated by running attached code:

clBuildProgram failed
************************************************
<program source>:4:5: warning: no previous prototype for function 'get_pass_id'
int get_pass_id(This *this){
    ^
<program source>:15:7: error: use of undeclared identifier 'importantData'
      importantData[id]  = importantData[id] * id;
      ^
<program source>:15:28: error: use of undeclared identifier 'importantData'
      importantData[id]  = importantData[id] * id;
                           ^

************************************************

Mar 24, 2013 5:06:51 AM com.amd.aparapi.internal.kernel.KernelRunner 
warnFallBackAndExecute
WARNING: Reverting to Java Thread Pool (JTP) for class bug.BugDerivedClass: 
OpenCL compile failed

Original issue reported on code.google.com by n...@u1.com on 24 Mar 2013 at 12:11

Attachments: