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

clCreateContext fails on CPU but not on GPU

$
0
0

On a laptop running under Windows 10 64 bits and dual Intel GPU / NVIDIA GPU configuration, my OpenCL program returns a CL_OUT_OF_HOST_MEMORY when creating an OpenCL context with the "Intel (R) OpenCL" platform and a "Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz - OpenCL 2.0 (Build 359)" device while the create context succeeds when I choose the "Intel(R) HD Graphics 530" device on the same platform and same code. Now the strange thing is that with one of the Intel OpenCL sample code, on the same machine and system, the context is created normally in both cases. Under VS 2015, at the time of context creation, heap allocation is only around 3 Mb so it feels weird to read that the host is out of memory!

Does anybody know what could be causing this error when choosing the CPU device under certain conditions?

Thread Topic: 

Help Me

Viewing all articles
Browse latest Browse all 1182

Trending Articles



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