-
Notifications
You must be signed in to change notification settings - Fork 10
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
Getting load balancer performance:
relevant code:
numberCruncher.performanceFeed = true;
// then calls array.compute(numberCruncher,.....) n times
output:
Compute-ID: 1 ----- Load Distributions: [50.0%] - [50.0%] -----------------------------------------------------
Device 0(stream): Intel(R) Celeron(R) CPU N3060 ||| time: 187.5ms, workitems: 131,072
Device 1(stream): Intel(R) HD Graphics 400 ||| time: 109.56ms, workitems: 131,072
-----------------------------------------------------------------------------------------------------------------
Compute-ID: 1 ----- Load Distributions: [46.1%] - [53.9%] -----------------------------------------------------
Device 0(stream): Intel(R) Celeron(R) CPU N3060 ||| time: 21.02ms, workitems: 120,832
Device 1(stream): Intel(R) HD Graphics 400 ||| time: 22.08ms, workitems: 141,312
-----------------------------------------------------------------------------------------------------------------
Compute-ID: 1 ----- Load Distributions: [46.5%] - [53.5%] -----------------------------------------------------
Device 0(stream): Intel(R) Celeron(R) CPU N3060 ||| time: 22.15ms, workitems: 121,856
Device 1(stream): Intel(R) HD Graphics 400 ||| time: 25.24ms, workitems: 140,288
-----------------------------------------------------------------------------------------------------------------
Compute-ID: 1 ----- Load Distributions: [47.5%] - [52.5%] -----------------------------------------------------
Device 0(stream): Intel(R) Celeron(R) CPU N3060 ||| time: 20.51ms, workitems: 124,416
Device 1(stream): Intel(R) HD Graphics 400 ||| time: 21.54ms, workitems: 137,728
-----------------------------------------------------------------------------------------------------------------
Compute-ID: 1 ----- Load Distributions: [47.9%] - [52.1%] -----------------------------------------------------
Device 0(stream): Intel(R) Celeron(R) CPU N3060 ||| time: 43.91ms, workitems: 125,440
Device 1(stream): Intel(R) HD Graphics 400 ||| time: 41.7ms, workitems: 136,704
-----------------------------------------------------------------------------------------------------------------
Compute-ID: 1 ----- Load Distributions: [47.5%] - [52.5%] -----------------------------------------------------
Device 0(stream): Intel(R) Celeron(R) CPU N3060 ||| time: 16.66ms, workitems: 124,416
Device 1(stream): Intel(R) HD Graphics 400 ||| time: 6.08ms, workitems: 137,728
-----------------------------------------------------------------------------------------------------------------
Compute-ID: 1 ----- Load Distributions: [40.6%] - [59.4%] -----------------------------------------------------
Device 0(stream): Intel(R) Celeron(R) CPU N3060 ||| time: 42.61ms, workitems: 106,496
Device 1(stream): Intel(R) HD Graphics 400 ||| time: 31.46ms, workitems: 155,648
-----------------------------------------------------------------------------------------------------------------
Compute-ID: 1 ----- Load Distributions: [38.5%] - [61.5%] -----------------------------------------------------
Device 0(stream): Intel(R) Celeron(R) CPU N3060 ||| time: 14.31ms, workitems: 100,864
Device 1(stream): Intel(R) HD Graphics 400 ||| time: 7.43ms, workitems: 161,280
-----------------------------------------------------------------------------------------------------------------
Compute-ID: 1 ----- Load Distributions: [34.3%] - [65.7%] -----------------------------------------------------
Device 0(stream): Intel(R) Celeron(R) CPU N3060 ||| time: 15.93ms, workitems: 89,856
Device 1(stream): Intel(R) HD Graphics 400 ||| time: 17.12ms, workitems: 172,288
-----------------------------------------------------------------------------------------------------------------
Compute-ID: 1 ----- Load Distributions: [35.9%] - [64.1%] -----------------------------------------------------
Device 0(stream): Intel(R) Celeron(R) CPU N3060 ||| time: 28ms, workitems: 94,208
Device 1(stream): Intel(R) HD Graphics 400 ||| time: 13.11ms, workitems: 167,936
-----------------------------------------------------------------------------------------------------------------
Compute-ID: 1 ----- Load Distributions: [36.2%] - [63.8%] -----------------------------------------------------
Device 0(stream): Intel(R) Celeron(R) CPU N3060 ||| time: 17.05ms, workitems: 94,976
Device 1(stream): Intel(R) HD Graphics 400 ||| time: 17.27ms, workitems: 167,168
-----------------------------------------------------------------------------------------------------------------
Compute-ID: 1 ----- Load Distributions: [36.4%] - [63.6%] -----------------------------------------------------
Device 0(stream): Intel(R) Celeron(R) CPU N3060 ||| time: 20.92ms, workitems: 95,488
Device 1(stream): Intel(R) HD Graphics 400 ||| time: 13.05ms, workitems: 166,656
-----------------------------------------------------------------------------------------------------------------
Compute-ID: 1 ----- Load Distributions: [35.9%] - [64.1%] -----------------------------------------------------
Device 0(stream): Intel(R) Celeron(R) CPU N3060 ||| time: 21.99ms, workitems: 94,208
Device 1(stream): Intel(R) HD Graphics 400 ||| time: 21.72ms, workitems: 167,936
-----------------------------------------------------------------------------------------------------------------
Compute-ID: 1 ----- Load Distributions: [35.2%] - [64.8%] -----------------------------------------------------
Device 0(stream): Intel(R) Celeron(R) CPU N3060 ||| time: 12.21ms, workitems: 92,160
Device 1(stream): Intel(R) HD Graphics 400 ||| time: 12.56ms, workitems: 169,984
-----------------------------------------------------------------------------------------------------------------
Compute-ID: 1 ----- Load Distributions: [34.2%] - [65.8%] -----------------------------------------------------
Device 0(stream): Intel(R) Celeron(R) CPU N3060 ||| time: 23.48ms, workitems: 89,600
Device 1(stream): Intel(R) HD Graphics 400 ||| time: 24.01ms, workitems: 172,544
-----------------------------------------------------------------------------------------------------------------
Compute-ID: 1 ----- Load Distributions: [33.2%] - [66.8%] -----------------------------------------------------
Device 0(stream): Intel(R) Celeron(R) CPU N3060 ||| time: 12.52ms, workitems: 87,040
Device 1(stream): Intel(R) HD Graphics 400 ||| time: 12.54ms, workitems: 175,104
-----------------------------------------------------------------------------------------------------------------
Compute-ID: 1 ----- Load Distributions: [32.7%] - [67.3%] -----------------------------------------------------
Device 0(stream): Intel(R) Celeron(R) CPU N3060 ||| time: 14.91ms, workitems: 85,760
Device 1(stream): Intel(R) HD Graphics 400 ||| time: 9.85ms, workitems: 176,384
-----------------------------------------------------------------------------------------------------------------```