Skip to content

Latest commit

 

History

History

dpc_info

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

DPC++ Info

Overview

This sample application provides information on all platforms and devices available in DPC++ (similar to clinfo tool).

The following modes are implemented:

  • Detailed information on each platform and device (-a):

        Number of  platforms                            5
        Platform Name                                   Intel(R) OpenCL
        Platform Vendor                                 Intel(R) Corporation
        Platform Profile                                FULL_PROFILE
        Platform Extensions                             cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics ...
    ...
        Platform Name                                   Intel(R) OpenCL HD Graphics
        Platform Vendor                                 Intel(R) Corporation
        Platform Profile                                FULL_PROFILE
        Platform Extensions                             cl_khr_byte_addressable_store cl_khr_fp16 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_icd cl_khr_local_int32_base_atomics ...
    ...
    
        Platform Name                                   Intel(R) OpenCL
    Number of devices                                   1
        Device Name                                     Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
        Device Vendor                                   Intel(R) Corporation
        Device vendor ID                                0x8086
        Device Version                                  OpenCL 2.1 (Build 0)
    ...
    
  • List of available devices and platforms (-l):

    Platform #0: Intel(R) OpenCL
    `-- Device #0: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
    Platform #1: Intel(R) FPGA Emulation Platform for OpenCL(TM)
    `-- Device #0: Intel(R) FPGA Emulation Device
    Platform #2: Intel(R) OpenCL HD Graphics
    `-- Device #0: Intel(R) Gen9 HD Graphics NEO
    Platform #3: Intel(R) Level-Zero
    `-- Device #0: Intel(R) Gen9
    Platform #4: SYCL host platform
    `-- Device #0: SYCL host device
    

Supported OS

  • Linux
  • Windows

Prerequisites

Build and Run

Linux

Run the following commands to build the sample (make sure you have oneAPI DPC++ Compiler in PATH for building):

source <inteloneapi>/setvars.sh
cd <pti>/samples/dpc_info
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make

Use this command line to run the utility:

./dpc_info [-l|-a]

Windows

Use Microsoft* Visual Studio x64 command prompt to run the following commands and build the sample (make sure you have oneAPI DPC++ Compiler in PATH for building):

<inteloneapi>\setvars.bat
cd <pti>\samples\dpc_info
mkdir build
cd build
cmake ..
cmake --build . --config Release

Use this command line to run the application:

cd Release
dpc_info.exe [-l|-a]