1.查CPU架构的命令以及说明:
rpdzkj@MiWiFi-RA72-srv:/proc/device-tree$ cat /proc/cpuinfo
processor : 0
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4processor : 1
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4processor : 2
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4processor : 3
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4processor : 4
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 2processor : 5
BogoMIPS : 48.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 2Serial : a78f6a1b3b93e1a6
根据提供的最新/proc/cpuinfo输出,以下是处理器的详细信息:
-
第一个处理器(processor 0)到第四个处理器(processor 3)的信息:
- BogoMIPS: 48.00
- Features: fp asimd evtstrm aes pmull sha1 sha2 crc32
- CPU implementer: 0x41
- CPU architecture: 8
- CPU variant: 0x0
- CPU part: 0xd03
- CPU revision: 4
-
第五个处理器(processor 4)和第六个处理器(processor 5)的信息:
- BogoMIPS: 48.00
- Features: fp asimd evtstrm aes pmull sha1 sha2 crc32
- CPU implementer: 0x41
- CPU architecture: 8
- CPU variant: 0x0
- CPU part: 0xd08
- CPU revision: 2
-
Serial: a78f6a1b3b93e1a6
根据这些信息,可以得到以下结论:
-
前四个处理器(processor 0到processor 3)是相同的,它们都是基于ARMv8架构的Cortex-A53核心。CPU part字段的值为0xd03,而CPU revision字段的值为4。
-
后两个处理器(processor 4和processor 5)也是相同的,它们都是基于ARMv8架构的Cortex-A72核心。CPU part字段的值为0xd08,而CPU revision字段的值为2。
-
Serial字段表示设备的序列号,具体的含义可能因设备而异。
综上所述,你的系统中有四个Cortex-A53核心的处理器和两个Cortex-A72核心的处理器。
2.查看gpu的信息:
在Linux终端上,可以使用不同的命令和工具来查询和显示系统的GPU信息。以下是一些常用的命令和工具:
lspci
:该命令用于显示系统的PCI设备信息。你可以运行lspci
命令,并查找与GPU相关的信息。
lsusb
:该命令用于显示系统的USB设备信息。如果你的GPU是通过USB接口连接的,你可以运行lsusb
命令来查找相关信息。
lshw
:该命令用于显示系统的硬件信息。你可以运行lshw -C display
命令,以获取有关显示设备(包括GPU)的详细信息。
glxinfo
:该命令用于显示OpenGL相关信息。你可以运行glxinfo | grep "OpenGL"
命令,以获取与GPU和OpenGL相关的详细信息。
clinfo
:该命令用于显示OpenCL相关信息。你可以运行clinfo
命令,以获取与GPU和OpenCL相关的详细信息。
在rk3399pro上面使用了clinfo命令,来获取到了rk3399pro的gpu信息。
rpdzkj@MiWiFi-RA72-srv:/proc/device-tree$ clinfo
-bash: clinfo: command not found
系统中没有安装 clinfo
命令,可以使用:
sudo apt-get install clinfo
rpdzkj@MiWiFi-RA72-srv:~/Downloads$ clinfo
arm_release_ver of this libmali is 'r18p0-01rel0', rk_so_ver is '4'.Number of platforms 1
Platform Name ARM Platform
Platform Vendor ARM
Platform Version OpenCL 1.2 v1.r18p0-01rel0.5cb5681058e8e076ff89747c20c32578
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_icd 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 ARMPlatform Name ARM Platform
Number of devices 1
Device Name Mali-T860
Device Vendor ARM
Device Vendor ID 0x8602000
Device Version OpenCL 1.2 v1.r18p0-01rel0.5cb5681058e8e076ff89747c20c32578
Driver Version 1.2
Device OpenCL C Version OpenCL C 1.2 v1.r18p0-01rel0.5cb5681058e8e076ff89747c20c32578
Device Type GPU
Device Profile FULL_PROFILE
Device Available Yes
Compiler Available Yes
Linker Available Yes
Max compute units 4
Max clock frequency 5MHz
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
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
Address bits 64, Little-Endian
Global memory size 1985691648 (1.849GiB)
Error Correction support No
Max memory allocation 496422912 (473.4MiB)
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 262144 (256KiB)
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 16 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 8
Local memory type Global
Local memory size 32768 (32KiB)
Max number of constant args 8
Max constant buffer size 65536 (64KiB)
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 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_icd 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_memoryNULL 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-T860
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-T860
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-T860ICD 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