AdamRLukaitis / simple-opencl

Automatically exported from code.google.com/p/simple-opencl
0 stars 0 forks source link

Not initialized 'myEvent' variable is being used #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In some functions 'myEvent' variable is defined and only initialized if DEBUG 
is defined . But 'myEvent' is always returned (initialized or not).

Affected functions (could be others):
 - sclLaunchKernel
 - sclEnqueueKernel

Original issue reported on code.google.com by conta...@rafagarcia.net on 13 Sep 2013 at 9:53

GoogleCodeExporter commented 9 years ago
Possible solutions:
  - Initialize with null
  - Use always myEvent but requires a benchmark to know whether performance is affected.

Original comment by conta...@rafagarcia.net on 18 Sep 2013 at 12:31

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r163.

Original comment by conta...@rafagarcia.net on 24 Sep 2013 at 10:08