PrashantChauhan / aparapi

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

Generated variable names starting with '$' causes flex to crash inside clBuildProgram #90

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When compiling APARAPI generate OpenCL programs for an AMD Radeon HD 7660D 
which contain variable names starting with a dollar sign ('$') flex crashes 
with the message:

flex scanner jammed

I fixed this by adding a number of checks in KernelWriter and BlockWriter 
before variable names from the bytecode are emitted into the generated OpenCL 
kernels, and transforming '$' into 'aparapi_generated_'. Diffs for those files 
are attached.

Original issue reported on code.google.com by jmaxg3@gmail.com on 11 Jan 2013 at 3:58

Attachments:

GoogleCodeExporter commented 8 years ago
Max thanks for this patch.   

I will apply this to the trunk.  

Gary

Original comment by frost.g...@gmail.com on 21 Jan 2013 at 3:16