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

Open CL error CL_DEVICE_NOT_AVAILABLE

Udovydchenkov__Ilya
864 Views

Hi,

I am trying to run a code that requires Open CL, but I get an error "clCreateContext(): CL_DEVICE_NOT_AVAILABLE"

The CPUs are 2 quad core Intel Xeon X5482. Are these CPUs supported? Here is the OpenCL info. Thanks.

OpenCL Info:

Platform ID #1
  Vendor  : Intel(R) Corporation
  Name    : Intel(R) OpenCL
  Version : OpenCL 2.1

  Device ID #1
    Type           : CPU
    Vendor ID      : 8
    Vendor         : Intel(R) Corporation
    Name           : Intel(R) Xeon(R) CPU           X5482  @ 3.20GHz
    Version        : OpenCL 2.1 (Build 0)
    Processor(s)   : 8
    Clock          : 3200
    Memory         : 16383/65533 MB allocatable
    OpenCL Version : OpenCL C 2.0
    Driver Version : 18.1.0.0920

Platform ID #2
  Vendor  : NVIDIA Corporation
  Name    : NVIDIA CUDA
  Version : OpenCL 1.2 CUDA 9.1.84

  Device ID #2
    Type           : GPU
    Vendor ID      : 32
    Vendor         : NVIDIA Corporation
    Name           : GeForce GT 430
    Version        : OpenCL 1.1 CUDA
    Processor(s)   : 2
    Clock          : 1400
    Memory         : 512/2048 MB allocatable
    OpenCL Version : OpenCL C 1.1
    Driver Version : 391.35

Platform ID #3
  Vendor  : Intel(R) Corporation
  Name    : Intel(R) CPU Runtime for OpenCL(TM) Applications
  Version : OpenCL 2.1 WINDOWS

  Device ID #3
    Type           : CPU
    Vendor ID      : 8
    Vendor         : Intel(R) Corporation
    Name           : Intel(R) Xeon(R) CPU           X5482  @ 3.20GHz
    Version        : OpenCL 2.1 (Build 0)
    Processor(s)   : 8
    Clock          : 3200
    Memory         : 16383/65533 MB allocatable
    OpenCL Version : OpenCL C 2.0
    Driver Version : 18.1.0.0920

0 Kudos
1 Reply
Michael_C_Intel1
Moderator
864 Views

Hello IlyaU,

Thanks for the interest.

It doesn't look like that particular legacy Xeon product is supported by the 18.1 runtime in use. See supported processors for each CPU Runtime  in the release notes page.

That being said, if the code is not privileged...  it could be useful to see your OpenCL API setup code before and at the clCreateContext() function call.

Thanks,

-MichaelC

0 Kudos
Reply