OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1719 Discussions

Device becomes unavailable after attempting to create context

Maxime_D_
Beginner
489 Views

My cpu device is reported as available from clGetDeviceInfo.  But when I try to clCreateContext, it returns error -2 (CL_DEVICE_NOT_AVAILABLE).  The device is then reported as non-availble from clGetDeviceInfo.

I am running ubuntu 14.04 on virtualbox on Windows 7.  From what I gathered, running in a VM is not an issue for OpenCL on a cpu.  My cpu is an i5-2520m.

There might be a solution (http://stackoverflow.com/questions/18193320 and http://stackoverflow.com/questions/17346647), but I thought I would try this forum first.  The solution in those posts is to install the AMD graphics driver, even if one does not have an AMD video card.

0 Kudos
1 Reply
Yuri_K_Intel
Employee
489 Views
Hi Maxime, What version of VirtualBox you are using? Please note that SSE4.2 support is required for Intel OpenCL CPU runtime. And I'm not sure whether latest official VitrualBox release support it. See this discussion - https://software.intel.com/en-us/forums/topic/506830. You might also check /proc/cpuinfo for the presence of sse4_2 in flags. Thanks, Yuri
0 Kudos
Reply