browndeer / coprthr

The CO-PRocessing THReads (COPRTHR) SDK - latest release is v1.6.2 (Freewill)
http://www.browndeertechnology.com/coprthr.html
Other
94 stars 35 forks source link

libcoprthr_opencl: clGetDeviceInfo for CL_DEVICE_EXTENSIONS causes segfault #19

Closed sctincman closed 9 years ago

sctincman commented 10 years ago

When using libcopthr_opencl (through libocl), probing for device extensions with clGetDeviceInfo causes a segfault. Backtracing fingers the call to "strnlen" as the culprit, due to the "extensions" field of devinfo not being initialized.

Originally discovered trying to use the OpenCL backend for Octopus, but can be reproduced by extending clinfo.x in the test suite to probe device extensions as well.