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.

OpenCL error clCreateContext(): CL_DEVICE_NOT_AVAILABLE

Cordella__Alessandro
3,293 Views

I installed the latest OpenCL version (Intel® CPU Runtime for OpenCL™ Applications 18.1 for Linux* OS (64bit only)) on a Ubuntu 16 virtual machine.

I run a program (in this case Hashcat) and I get this errror:

hashcat (v5.1.0) starting...

OpenCL Platform #1: Intel(R) Corporation
========================================
* Device #1: Common KVM processor, 757/3029 MB allocatable, 2MCU

Hashes: 4 digests; 2 unique digests, 1 unique salts
Bitmaps: 16 bits, 65536 entries, 0x0000ffff mask, 262144 bytes, 5/13 rotates

Applicable optimizers:
* Zero-Byte
* Single-Salt
* Brute-Force
* Slow-Hash-SIMD-LOOP

Minimum password length supported by kernel: 8
Maximum password length supported by kernel: 63

Watchdog: Hardware monitoring interface not found on your system.
Watchdog: Temperature abort trigger disabled.

clCreateContext(): CL_DEVICE_NOT_AVAILABLE

I am using an Intel i5 3470 CPU.

What is the meaming of that error? How can I fix it?

0 Kudos
2 Replies
Andrey_P_Intel
Employee
3,293 Views

Based on the output you provided, I am assuming you are running the code in full virtualization mode using QEMU, which provide a CPU-emulation layer. In this case, Intel OpenCL Runtime is unable to execute the OpenCL kernel on the "Common KVM processor", because the runtime is looking for Intel CPU.

0 Kudos
Ulianych__Danylo
Beginner
3,293 Views

Dear Andrey,

I get a similar issue. Where would you recommend to look for an appropriate OpenCL CPU driver for QEMU KVM, Ubuntu 18? Is it possible at all?

Thank you.

Danylo.

0 Kudos
Reply