Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nyanmisaka/afef3541abf89fcaf3456c2cf43c5b26 to your computer and use it in GitHub Desktop.
Save nyanmisaka/afef3541abf89fcaf3456c2cf43c5b26 to your computer and use it in GitHub Desktop.
mali-g720mc10-immortals-r49p0-00eac0-clinfo-clpeak.log
radxa@orion-o6:~$ clinfo
Number of platforms 1
Platform Name ARM Platform
Platform Vendor ARM
Platform Version OpenCL 3.0 v1.r49p0-00eac0.b97811108d91b3a6cd0a9d90e51f9da5
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_3d_image_writes cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp16 cl_khr_icd cl_khr_egl_image cl_khr_image2d_from_buffer cl_khr_depth_images cl_khr_subgroups cl_khr_subgroup_extended_types cl_khr_subgroup_non_uniform_vote cl_khr_subgroup_ballot cl_khr_subgroup_non_uniform_arithmetic cl_khr_subgroup_shuffle cl_khr_subgroup_shuffle_relative cl_khr_subgroup_clustered_reduce cl_khr_subgroup_rotate cl_khr_il_program cl_khr_priority_hints cl_khr_create_command_queue cl_khr_spirv_no_integer_wrap_decoration cl_khr_extended_versioning cl_khr_device_uuid cl_khr_suggested_local_work_size cl_khr_extended_bit_ops cl_khr_integer_dot_product cl_khr_semaphore cl_khr_external_semaphore cl_khr_external_semaphore_sync_fd cl_khr_external_memory cl_khr_external_memory_dma_buf cl_khr_command_buffer cl_khr_command_buffer_mutable_dispatch cl_arm_core_id cl_arm_printf cl_arm_non_uniform_work_group_size cl_arm_import_memory cl_arm_import_memory_dma_buf cl_arm_import_memory_host cl_arm_integer_dot_product_int8 cl_arm_integer_dot_product_accumulate_int8 cl_arm_integer_dot_product_accumulate_saturate_int8 cl_arm_scheduling_controls cl_arm_controlled_kernel_termination cl_arm_matrix_multiply cl_ext_cxx_for_opencl cl_ext_image_tiling_control cl_ext_image_requirements_info cl_ext_image_from_buffer cl_ext_yuv_images cl_ext_image_raw10_raw12 cl_ext_image_drm_format_modifier
Platform Extensions with Version cl_khr_global_int32_base_atomics 0x400000 (1.0.0)
cl_khr_global_int32_extended_atomics 0x400000 (1.0.0)
cl_khr_local_int32_base_atomics 0x400000 (1.0.0)
cl_khr_local_int32_extended_atomics 0x400000 (1.0.0)
cl_khr_byte_addressable_store 0x400000 (1.0.0)
cl_khr_3d_image_writes 0x400000 (1.0.0)
cl_khr_int64_base_atomics 0x400000 (1.0.0)
cl_khr_int64_extended_atomics 0x400000 (1.0.0)
cl_khr_fp16 0x400000 (1.0.0)
cl_khr_icd 0x400000 (1.0.0)
cl_khr_egl_image 0x400000 (1.0.0)
cl_khr_image2d_from_buffer 0x400000 (1.0.0)
cl_khr_depth_images 0x400000 (1.0.0)
cl_khr_subgroups 0x400000 (1.0.0)
cl_khr_subgroup_extended_types 0x400000 (1.0.0)
cl_khr_subgroup_non_uniform_vote 0x400000 (1.0.0)
cl_khr_subgroup_ballot 0x400000 (1.0.0)
cl_khr_subgroup_non_uniform_arithmetic 0x400000 (1.0.0)
cl_khr_subgroup_shuffle 0x400000 (1.0.0)
cl_khr_subgroup_shuffle_relative 0x400000 (1.0.0)
cl_khr_subgroup_clustered_reduce 0x400000 (1.0.0)
cl_khr_subgroup_rotate 0x400000 (1.0.0)
cl_khr_il_program 0x400000 (1.0.0)
cl_khr_priority_hints 0x400000 (1.0.0)
cl_khr_create_command_queue 0x400000 (1.0.0)
cl_khr_spirv_no_integer_wrap_decoration 0x400000 (1.0.0)
cl_khr_extended_versioning 0x400000 (1.0.0)
cl_khr_device_uuid 0x400000 (1.0.0)
cl_khr_suggested_local_work_size 0x400000 (1.0.0)
cl_khr_extended_bit_ops 0x400000 (1.0.0)
cl_khr_integer_dot_product 0x800000 (2.0.0)
cl_khr_semaphore 0x9001 (0.9.1)
cl_khr_external_semaphore 0x9000 (0.9.0)
cl_khr_external_semaphore_sync_fd 0x9000 (0.9.0)
cl_khr_external_memory 0x9000 (0.9.0)
cl_khr_external_memory_dma_buf 0x9000 (0.9.0)
cl_khr_command_buffer 0x9004 (0.9.4)
cl_khr_command_buffer_mutable_dispatch 0x9000 (0.9.0)
cl_arm_core_id 0x400000 (1.0.0)
cl_arm_printf 0x800000 (2.0.0)
cl_arm_non_uniform_work_group_size 0x400000 (1.0.0)
cl_arm_import_memory 0x401000 (1.1.0)
cl_arm_import_memory_dma_buf 0x400000 (1.0.0)
cl_arm_import_memory_host 0x400000 (1.0.0)
cl_arm_integer_dot_product_int8 0x400000 (1.0.0)
cl_arm_integer_dot_product_accumulate_int8 0x400000 (1.0.0)
cl_arm_integer_dot_product_accumulate_saturate_int8 0x400000 (1.0.0)
cl_arm_scheduling_controls 0x6000 (0.6.0)
cl_arm_controlled_kernel_termination 0x400000 (1.0.0)
cl_arm_matrix_multiply 0x400000 (1.0.0)
cl_ext_cxx_for_opencl 0x400000 (1.0.0)
cl_ext_image_tiling_control 0x1000 (0.1.0)
cl_ext_image_requirements_info 0x5000 (0.5.0)
cl_ext_image_from_buffer 0x400000 (1.0.0)
cl_ext_yuv_images 0x1000 (0.1.0)
cl_ext_image_raw10_raw12 0x1000 (0.1.0)
cl_ext_image_drm_format_modifier 0x1000 (0.1.0)
Platform Numeric Version 0xc00000 (3.0.0)
Platform Extensions function suffix ARM
Platform Host timer resolution 1ns
Platform External memory handle types DMA buffer
Platform Semaphore types Binary
Platform External semaphore import types 0
Platform External semaphore export types 0
Platform Name ARM Platform
Number of devices 1
Device Name Mali-G720-Immortalis r0p0
Device Vendor ARM
Device Vendor ID 0x13b5
Device Version OpenCL 3.0 v1.r49p0-00eac0.b97811108d91b3a6cd0a9d90e51f9da5
Device UUID 000070c8-0100-0000-0000-000000000000
Driver UUID b7db6b83-aa94-c49b-2153-d7f63784e817
Valid Device LUID No
Device LUID 0000-000000000000
Device Node Mask 0
Device Numeric Version 0xc00000 (3.0.0)
Driver Version 3.0
Device OpenCL C Version OpenCL C 3.0 v1.r49p0-00eac0.b97811108d91b3a6cd0a9d90e51f9da5
Device OpenCL C Numeric Version 0xc00000 (3.0.0)
Device OpenCL C all versions OpenCL C 0x400000 (1.0.0)
OpenCL C 0x401000 (1.1.0)
OpenCL C 0x402000 (1.2.0)
OpenCL C 0x800000 (2.0.0)
OpenCL C 0xc00000 (3.0.0)
Device OpenCL C features __opencl_c_images 0x400000 (1.0.0)
__opencl_c_int64 0x400000 (1.0.0)
__opencl_c_3d_image_writes 0x402000 (1.2.0)
__opencl_c_atomic_order_acq_rel 0x800000 (2.0.0)
__opencl_c_atomic_order_seq_cst 0x800000 (2.0.0)
__opencl_c_atomic_scope_device 0x800000 (2.0.0)
__opencl_c_atomic_scope_all_devices 0x800000 (2.0.0)
__opencl_c_device_enqueue 0x800000 (2.0.0)
__opencl_c_generic_address_space 0x800000 (2.0.0)
__opencl_c_pipes 0x800000 (2.0.0)
__opencl_c_program_scope_global_variables 0x800000 (2.0.0)
__opencl_c_read_write_images 0x800000 (2.0.0)
__opencl_c_subgroups 0x800000 (2.0.0)
__opencl_c_work_group_collective_functions 0x800000 (2.0.0)
__opencl_c_integer_dot_product_input_4x8bit 0x800000 (2.0.0)
__opencl_c_integer_dot_product_input_4x8bit_packed 0x800000 (2.0.0)
Device C++ for OpenCL Numeric Version 0x400000 (1.0.0)
Latest conformance test passed v2021-03-05-00
Device Type GPU
Device Profile FULL_PROFILE
Device Available Yes
Compiler Available Yes
Linker Available Yes
Max compute units 10
Available core IDs (ARM) 0, 2, 4, 6, 8, 10, 16, 18, 20, 22
Max clock frequency 1100MHz
Device Partition (core)
Max number of sub-devices 0
Supported partition types None
Supported affinity domains (n/a)
Max work item dimensions 3
Max work item sizes 1024x1024x1024
Max work group size 1024
Preferred work group size multiple (device) 16
Preferred work group size multiple (kernel) 16
Max sub-groups per work group 64
Preferred / native vector sizes
char 16 / 4
short 8 / 2
int 4 / 1
long 2 / 1
half 8 / 2 (cl_khr_fp16)
float 4 / 1
double 0 / 0 (n/a)
Half-precision Floating-point support (cl_khr_fp16)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Single-precision Floating-point support (core)
Denormals Yes
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations No
Double-precision Floating-point support (n/a)
Address bits 64, Little-Endian
External memory handle types DMA buffer
Semaphore types Binary
External semaphore import types Sync FD
External semaphore export types Sync FD
Global memory size 15961792512 (14.87GiB)
Error Correction support No
Max memory allocation 15961792512 (14.87GiB)
Unified memory for Host and Device Yes
Shared Virtual Memory (SVM) capabilities (core)
Coarse-grained buffer sharing Yes
Fine-grained buffer sharing No
Fine-grained system sharing No
Atomics No
Minimum alignment for any data type 128 bytes
Alignment of base address 1024 bits (128 bytes)
Preferred alignment for atomics
SVM 0 bytes
Global 0 bytes
Local 0 bytes
Atomic memory capabilities relaxed, acquire/release, sequentially-consistent, work-item scope, work-group scope, device scope, all-devices scope
Atomic fence capabilities relaxed, acquire/release, sequentially-consistent, work-item scope, work-group scope, device scope, all-devices scope
Max size for global variable 65536 (64KiB)
Preferred total size of global vars 0
Global Memory cache type Read/Write
Global Memory cache size 2097152 (2MiB)
Global Memory cache line size 64 bytes
Image support Yes
Max number of samplers per kernel 16
Max size for 1D images from buffer 65536 pixels
Max 1D or 2D image array size 2048 images
Base address alignment for 2D image buffers 32 bytes
Pitch alignment for 2D image buffers 64 pixels
Max 2D image size 65536x65536 pixels
Max 3D image size 65536x65536x65536 pixels
Max number of read image args 128
Max number of write image args 64
Max number of read/write image args 64
Pipe support Yes
Max number of pipe args 16
Max active pipe reservations 1
Max pipe packet size 1024
Local memory type Global
Local memory size 32768 (32KiB)
Max number of constant args 128
Max constant buffer size 15961792512 (14.87GiB)
Generic address space support Yes
Max size of kernel argument 1024
Queue properties (on host)
Out-of-order execution Yes
Profiling Yes
Device enqueue capabilities supported, replaceable default queue
Queue properties (on device)
Out-of-order execution Yes
Profiling Yes
Preferred size 2097152 (2MiB)
Max size 16777216 (16MiB)
Max queues on device 1
Max events on device 1024
Command buffer capabilities (n/a)
Required queue properties for command buffer
Out-of-order execution No
Profiling No
Controlled termination caps. (ARM) Controlled Success, Controlled Failurure
Prefer user sync for interop No
Profiling timer resolution 1000ns
Execution capabilities
Run OpenCL kernels Yes
Run native kernels No
Non-uniform work-groups Yes
Work-group collective functions Yes
Sub-group independent forward progress Yes
Scheduling controls (ARM) Kernel batching, Work-group batch size, Work-group batch size modifier, Register allocation, Warp throttling, Compute unit batch queue size, 0x80
Supported reg allocs (ARM) 32, 64
Max warps/CU (ARM) 128
IL version SPIR-V_1.0
ILs with version SPIR-V 0x400000 (1.0.0)
printf() buffer size 1048576 (1024KiB)
Built-in kernels (n/a)
Built-in kernels with version (n/a)
Device Extensions cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_3d_image_writes cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp16 cl_khr_icd cl_khr_egl_image cl_khr_image2d_from_buffer cl_khr_depth_images cl_khr_subgroups cl_khr_subgroup_extended_types cl_khr_subgroup_non_uniform_vote cl_khr_subgroup_ballot cl_khr_subgroup_non_uniform_arithmetic cl_khr_subgroup_shuffle cl_khr_subgroup_shuffle_relative cl_khr_subgroup_clustered_reduce cl_khr_subgroup_rotate cl_khr_il_program cl_khr_priority_hints cl_khr_create_command_queue cl_khr_spirv_no_integer_wrap_decoration cl_khr_extended_versioning cl_khr_device_uuid cl_khr_suggested_local_work_size cl_khr_extended_bit_ops cl_khr_integer_dot_product cl_khr_semaphore cl_khr_external_semaphore cl_khr_external_semaphore_sync_fd cl_khr_external_memory cl_khr_external_memory_dma_buf cl_khr_command_buffer cl_khr_command_buffer_mutable_dispatch cl_arm_core_id cl_arm_printf cl_arm_non_uniform_work_group_size cl_arm_import_memory cl_arm_import_memory_dma_buf cl_arm_import_memory_host cl_arm_integer_dot_product_int8 cl_arm_integer_dot_product_accumulate_int8 cl_arm_integer_dot_product_accumulate_saturate_int8 cl_arm_scheduling_controls cl_arm_controlled_kernel_termination cl_arm_matrix_multiply cl_ext_cxx_for_opencl cl_ext_image_tiling_control cl_ext_image_requirements_info cl_ext_image_from_buffer cl_ext_yuv_images cl_ext_image_raw10_raw12 cl_ext_image_drm_format_modifier
Device Extensions with Version cl_khr_global_int32_base_atomics 0x400000 (1.0.0)
cl_khr_global_int32_extended_atomics 0x400000 (1.0.0)
cl_khr_local_int32_base_atomics 0x400000 (1.0.0)
cl_khr_local_int32_extended_atomics 0x400000 (1.0.0)
cl_khr_byte_addressable_store 0x400000 (1.0.0)
cl_khr_3d_image_writes 0x400000 (1.0.0)
cl_khr_int64_base_atomics 0x400000 (1.0.0)
cl_khr_int64_extended_atomics 0x400000 (1.0.0)
cl_khr_fp16 0x400000 (1.0.0)
cl_khr_icd 0x400000 (1.0.0)
cl_khr_egl_image 0x400000 (1.0.0)
cl_khr_image2d_from_buffer 0x400000 (1.0.0)
cl_khr_depth_images 0x400000 (1.0.0)
cl_khr_subgroups 0x400000 (1.0.0)
cl_khr_subgroup_extended_types 0x400000 (1.0.0)
cl_khr_subgroup_non_uniform_vote 0x400000 (1.0.0)
cl_khr_subgroup_ballot 0x400000 (1.0.0)
cl_khr_subgroup_non_uniform_arithmetic 0x400000 (1.0.0)
cl_khr_subgroup_shuffle 0x400000 (1.0.0)
cl_khr_subgroup_shuffle_relative 0x400000 (1.0.0)
cl_khr_subgroup_clustered_reduce 0x400000 (1.0.0)
cl_khr_subgroup_rotate 0x400000 (1.0.0)
cl_khr_il_program 0x400000 (1.0.0)
cl_khr_priority_hints 0x400000 (1.0.0)
cl_khr_create_command_queue 0x400000 (1.0.0)
cl_khr_spirv_no_integer_wrap_decoration 0x400000 (1.0.0)
cl_khr_extended_versioning 0x400000 (1.0.0)
cl_khr_device_uuid 0x400000 (1.0.0)
cl_khr_suggested_local_work_size 0x400000 (1.0.0)
cl_khr_extended_bit_ops 0x400000 (1.0.0)
cl_khr_integer_dot_product 0x800000 (2.0.0)
cl_khr_semaphore 0x9001 (0.9.1)
cl_khr_external_semaphore 0x9000 (0.9.0)
cl_khr_external_semaphore_sync_fd 0x9000 (0.9.0)
cl_khr_external_memory 0x9000 (0.9.0)
cl_khr_external_memory_dma_buf 0x9000 (0.9.0)
cl_khr_command_buffer 0x9004 (0.9.4)
cl_khr_command_buffer_mutable_dispatch 0x9000 (0.9.0)
cl_arm_core_id 0x400000 (1.0.0)
cl_arm_printf 0x800000 (2.0.0)
cl_arm_non_uniform_work_group_size 0x400000 (1.0.0)
cl_arm_import_memory 0x401000 (1.1.0)
cl_arm_import_memory_dma_buf 0x400000 (1.0.0)
cl_arm_import_memory_host 0x400000 (1.0.0)
cl_arm_integer_dot_product_int8 0x400000 (1.0.0)
cl_arm_integer_dot_product_accumulate_int8 0x400000 (1.0.0)
cl_arm_integer_dot_product_accumulate_saturate_int8 0x400000 (1.0.0)
cl_arm_scheduling_controls 0x6000 (0.6.0)
cl_arm_controlled_kernel_termination 0x400000 (1.0.0)
cl_arm_matrix_multiply 0x400000 (1.0.0)
cl_ext_cxx_for_opencl 0x400000 (1.0.0)
cl_ext_image_tiling_control 0x1000 (0.1.0)
cl_ext_image_requirements_info 0x5000 (0.5.0)
cl_ext_image_from_buffer 0x400000 (1.0.0)
cl_ext_yuv_images 0x1000 (0.1.0)
cl_ext_image_raw10_raw12 0x1000 (0.1.0)
cl_ext_image_drm_format_modifier 0x1000 (0.1.0)
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) ARM Platform
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [ARM]
clCreateContext(NULL, ...) [default] Success [ARM]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) Success (1)
Platform Name ARM Platform
Device Name Mali-G720-Immortalis r0p0
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) Success (1)
Platform Name ARM Platform
Device Name Mali-G720-Immortalis r0p0
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) Success (1)
Platform Name ARM Platform
Device Name Mali-G720-Immortalis r0p0
radxa@orion-o6:~$ taskset -c 0 clpeak
Platform: ARM Platform
Device: Mali-G720-Immortalis r0p0
Driver version : 3.0 (Linux ARM64)
Compute units : 10
Clock frequency : 1100 MHz
Global memory bandwidth (GBPS)
float : 37.93
float2 : 38.79
float4 : 37.08
float8 : 30.24
float16 : 9.84
Single-precision compute (GFLOPS)
float : 2194.73
float2 : 2438.23
float4 : 2503.63
float8 : 2523.26
float16 : 2528.15
Half-precision compute (GFLOPS)
half : 2230.90
half2 : 4369.39
half4 : 4793.70
half8 : 4930.21
half16 : 4933.12
No double precision support! Skipped
Integer compute (GIOPS)
int : 350.24
int2 : 350.57
int4 : 350.63
int8 : 350.58
int16 : 350.11
Integer compute Fast 24bit (GIOPS)
int : 350.29
int2 : 350.60
int4 : 350.69
int8 : 350.65
int16 : 350.22
Transfer bandwidth (GBPS)
enqueueWriteBuffer : 12.72
enqueueReadBuffer : 15.18
enqueueWriteBuffer non-blocking : 12.67
enqueueReadBuffer non-blocking : 15.20
enqueueMapBuffer(for read) : 75748.98
memcpy from mapped ptr : 15.20
enqueueUnmap(after write) : 113924.86
memcpy to mapped ptr : 12.65
Kernel launch latency : 10.06 us
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment