Skip to content

Instantly share code, notes, and snippets.

@tomoaki0705
Created July 20, 2019 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomoaki0705/e241b3b1f9c4010474b5d25e342967fc to your computer and use it in GitHub Desktop.
Save tomoaki0705/e241b3b1f9c4010474b5d25e342967fc to your computer and use it in GitHub Desktop.
clinfo from TinkerBoard
Linux tinkerboard 4.4.132+ #1 SMP Tue Oct 23 18:03:49 CST 2018 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Jul 17 12:50:52 2019 from 192.168.1.2
clinaro@tinkerboard:~$ clinfo
-bash: clinfo: command not found
linaro@tinkerboard:~$ sudo apt install clinfo
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libopts25
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
ocl-icd-libopencl1
Suggested packages:
opencl-icd
The following NEW packages will be installed:
clinfo ocl-icd-libopencl1
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 68.7 kB of archives.
After this operation, 180 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://cdn-fastly.deb.debian.org/debian stretch/main armhf ocl-icd-libopen cl1 armhf 2.2.11-1 [35.2 kB]
Get:2 http://cdn-fastly.deb.debian.org/debian stretch/main armhf clinfo armhf 2. 1.16.01.12-1+b1 [33.5 kB]
Fetched 68.7 kB in 0s (92.0 kB/s)
Selecting previously unselected package ocl-icd-libopencl1:armhf.
(Reading database ... 71398 files and directories currently installed.)
Preparing to unpack .../ocl-icd-libopencl1_2.2.11-1_armhf.deb ...
Unpacking ocl-icd-libopencl1:armhf (2.2.11-1) ...
Selecting previously unselected package clinfo.
Preparing to unpack .../clinfo_2.1.16.01.12-1+b1_armhf.deb ...
Unpacking clinfo (2.1.16.01.12-1+b1) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up ocl-icd-libopencl1:armhf (2.2.11-1) ...
Setting up clinfo (2.1.16.01.12-1+b1) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
linaro@tinkerboard:~$ clinfo
Number of platforms 0
linaro@tinkerboard:~/opencv-fork/build$ clinfo
Number of platforms 0
linaro@tinkerboard:~/opencv-fork/build$ strace -o ~/stracelog.log clinfo
Number of platforms 0
linaro@tinkerboard:~/opencv-fork/build$ tail !$
tail ~/stracelog.log
mprotect(0x7f608000, 4096, PROT_READ) = 0
mprotect(0xb6fdb000, 4096, PROT_READ) = 0
munmap(0xb6fa0000, 79157) = 0
brk(NULL) = 0x80acd000
brk(0x80aee000) = 0x80aee000
open("/etc/OpenCL/vendors", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
write(1, "Number of platforms "..., 52) = 52
exit_group(0) = ?
+++ exited with 0 +++
linaro@tinkerboard:~/opencv-fork/build$ ls -l /etc/OpenCL/
total 4
drwxr-xr-x 2 root root 4096 Nov 4 2016 venders
linaro@tinkerboard:~/opencv-fork/build$ cd /etc/OpenCL/
linaro@tinkerboard:/etc/OpenCL$ ls -l
total 4
drwxr-xr-x 2 root root 4096 Nov 4 2016 venders
linaro@tinkerboard:/etc/OpenCL$ sudo ln -s venders vendors
linaro@tinkerboard:/etc/OpenCL$ clinfo
Number of platforms 1
Platform Name ARM Platform
Platform Vendor ARM
Platform Version OpenCL 1.2 v1.r13p0-00rel0-git(a4271c9).40dbad8455f8b43d1f8fbb5a1fe733e6
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_fp64 cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp16 cl_khr_gl_sharing cl_khr_icd cl_khr_egl_event cl_khr_egl_image cl_khr_image2d_from_buffer cl_arm_core_id cl_arm_printf cl_arm_thread_limit_hint cl_arm_non_uniform_work_group_size cl_arm_import_memory
Platform Extensions function suffix ARM
Platform Name ARM Platform
Number of devices 1
Device Name Mali-T760
Device Vendor ARM
Device Vendor ID 0x7500001
Device Version OpenCL 1.2 v1.r13p0-00rel0-git(a4271c9).40dbad8455f8b43d1f8fbb5a1fe733e6
Driver Version 1.2
Device OpenCL C Version OpenCL C 1.2 v1.r13p0-00rel0-git(a4271c9).40dbad8455f8b43d1f8fbb5a1fe733e6
Device Type GPU
Device Profile FULL_PROFILE
Max compute units 4
Max clock frequency 100MHz
Device Partition (core)
Max number of sub-devices 0
Supported partition types None
Max work item dimensions 3
Max work item sizes 256x256x256
Max work group size 256
Preferred work group size multiple 4
Preferred / native vector sizes
char 16 / 16
short 8 / 8
int 4 / 4
long 2 / 2
half 8 / 8 (cl_khr_fp16)
float 4 / 4
double 2 / 2 (cl_khr_fp64)
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
Correctly-rounded divide and sqrt operations 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 (cl_khr_fp64)
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
Address bits 64, Little-Endian
Global memory size 2108801024 (1.964GiB)
Error Correction support No
Max memory allocation 527200256 (502.8MiB)
Unified memory for Host and Device Yes
Minimum alignment for any data type 128 bytes
Alignment of base address 1024 bits (128 bytes)
Global Memory cache type Read/Write
Global Memory cache size <printDeviceInfo:89: get CL_DEVICE_GLOBAL_MEM_CACHE_SIZE : error -30>
Global Memory cache line 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 16 bytes
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 8
Local memory type Global
Local memory size 32768 (32KiB)
Max constant buffer size 65536 (64KiB)
Max number of constant args 8
Max size of kernel argument 1024
Queue properties
Out-of-order execution Yes
Profiling Yes
Prefer user sync for interop No
Profiling timer resolution 1000ns
Execution capabilities
Run OpenCL kernels Yes
Run native kernels No
printf() buffer size 1048576 (1024KiB)
Built-in kernels
Device Available Yes
Compiler Available Yes
Linker Available Yes
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_fp64 cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp16 cl_khr_gl_sharing cl_khr_icd cl_khr_egl_event cl_khr_egl_image cl_khr_image2d_from_buffer cl_arm_core_id cl_arm_printf cl_arm_thread_limit_hint cl_arm_non_uniform_work_group_size cl_arm_import_memory
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_CPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) Success (1)
Platform Name ARM Platform
Device Name Mali-T760
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-T760
ICD loader properties
ICD loader Name OpenCL ICD Loader
ICD loader Vendor OCL Icd free software
ICD loader Version 2.2.11
ICD loader Profile OpenCL 2.1
linaro@tinkerboard:/etc/OpenCL$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment