Skip to content

Console Log

Hüseyin Tuğrul BÜYÜKIŞIK edited this page Apr 9, 2017 · 3 revisions

Cekirdekler API simply outputs selected info string to console. In future versions, it will be diverted to log files with indices.

Get selected platforms' info:

code:

Cekirdekler.Hardware.ClPlatforms platforms = Cekirdekler.Hardware.ClPlatforms.all();
platforms.logInfo();

output:

Selected platforms:
#0:
Platform name: Intel(R) OpenCL
Vendor name..: Intel(R) Corporation
Devices......: CPUs=1      GPUs=1        Accelerators=0

Get selected devices' info:

code:

Cekirdekler.Hardware.ClPlatforms platforms = Cekirdekler.Hardware.ClPlatforms.all();
var selectedDevices = platforms.platformsIntel().devicesWithHostMemorySharing();
selectedDevices.logInfo();

output:

Selected devices:
#0: Intel(R) Celeron(R) CPU  N3060  @ 1.60GHz(Intel(R) Corporation)     number of compute units:   2    type:CPU      memory: 3.83GB
#1: Intel(R) HD Graphics 400(Intel(R) Corporation)                      number of compute units:  12    type:GPU      memory: 1.52GB