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.
1663 Discussions

Why I can see 2 platforms?

zhang_f_
Beginner
155 Views

Hi,

My computer has only 1 CPU. It has 4 cores (8 threads). But when I use   err = clGetPlatformIDs(0, NULL, &numPlatforms);, I get 2 platforms.

One platform contains 1 CPU and 1 GPU, the other one contains 1 CPU. The 2 CPU are the same CPU.

I don't know why.

 

The platform number :  2
        PlatformId=0 deviceNums=2 vedor:Intel(R) Corporation
        PlatformId=1 deviceNums=1 vedor:Intel(R) Corporation

Compute Device #0
        name = Intel(R) Core(TM) i7-4770R CPU @ 3.20GHz deviceId[0] = 8317768
        Driver version = 4.2.0.99
        Global Memory (MB):       2047
        Max Memory Alloc (MB):     511
        with Cache (MB):             0
        Local Memory (KB):          32
        Max clock (MHz) :         3200
        Max Work Group Size:      8192
        Number of parallel compute units:            8

Compute Device #1
        name = Intel(R) Iris(TM) Pro Graphics 5200 deviceId[1] = 8343372
        Driver version = 10.18.10.3960
        Global Memory (MB):       1425
        Max Memory Alloc (MB):     356
        with Cache (MB):             2
        Local Memory (KB):          64
        Max clock (MHz) :          400
        Max Work Group Size:       512
        Number of parallel compute units:           40

Compute Device #2
        name = Intel(R) Core(TM) i7-4770R CPU @ 3.20GHz deviceId[2] = 8451000
        Driver version = 4.6.0.92
        Global Memory (MB):       2047
        Max Memory Alloc (MB):     511
        with Cache (MB):             0
        Local Memory (KB):          32
        Max clock (MHz) :         3200
        Max Work Group Size:      8192
        Number of parallel compute units:            8

0 Kudos
1 Reply
Robert_I_Intel
Employee
155 Views

Hi Zhang,

We have two platforms: experimental OpenCL 2.0 platform for the CPU and OpenCL 1.2 platform for the CPU and GPU, so what you see is normal.

Robert

Reply