Quantcast
Channel: Intel® Software - OpenCL*
Viewing all articles
Browse latest Browse all 1182

Line of code that fails with Intel driver, but works with AMD and NVIDIA.

$
0
0

Hello,

following line of code (OpenCL C++ bindings 1.2) fails with Intel runtime 14.2 (on ArchLinux) -  (segmentation fault), but works with AMD and NVIDIA.

`cl_context_properties cps = getContext(queue).getInfo<CL_CONTEXT_PROPERTIES>()[1];`

Is this a bug in the Intel driver?

The context is created in this constructor:

https://github.com/AvtechScientific/ASL/blob/a14703fa5e4ec933248a5b9ed17...

Context properties are passed here:

https://github.com/AvtechScientific/ASL/blob/a14703fa5e4ec933248a5b9ed17...
https://github.com/AvtechScientific/ASL/blob/a14703fa5e4ec933248a5b9ed17...

Here is the getContext():

https://github.com/AvtechScientific/ASL/blob/a14703fa5e4ec933248a5b9ed17...

Everything fails on this line:
https://github.com/AvtechScientific/ASL/blob/a14703fa5e4ec933248a5b9ed17...

once called here with the queues[i] being an Intel device
https://github.com/AvtechScientific/ASL/blob/a14703fa5e4ec933248a5b9ed17...

It looks like `getInfo<CL_CONTEXT_PROPERTIES>()` returns garbage...

Thank you.

 


Viewing all articles
Browse latest Browse all 1182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>