|
我在fedora系统下安装opencl,首先添加Rockhip官方源:
dnf localinstall --nogpgcheck http://repo.rock-chips.com/fedor ... -4.fc28.aarch64.rpm
然后升级:
dnf clean all
dnf update
安装包:
dnf install ocl-icd-devel.aarch64
readlink -f /usr/lib64/libOpenCL.so /usr/lib64/libmali.so.r18p0
安装clinfo:
dnf install clinfo
最后使用命令:
clinfo
出现结果:
Number of platforms 1
Platform Name ARM Platform
Platform Vendor ARM
Platform Version OpenCL 1.2 v1.r18p0-01rel0.42aa65ae5fdfdec464479cb891075220
Platform Profile FULL_PROFILE
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
Platform Extensions <printPlatformInfo:4: get CL_PLATFORM_EXTENSIONS size : error -6>
Failed creating base context during opening of kernel driver.
Kernel module may not have been loaded
printPlatformInfo:488: number of devices : error -6
不知道是哪里有问题?始终没有显现mali的信息
|
|