Toybrick

Fedora下安装opencl出现问题

newcomer3399

注册会员

积分
77
楼主
发表于 2020-3-24 15:00:54    查看: 4749|回复: 1 | [复制链接]    打印 | 只看该作者
我在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的信息
回复

使用道具 举报

jefferyzhang

版主

积分
12925
沙发
发表于 2020-3-24 16:21:09 | 只看该作者
负责的工程师好像说fedora的clinfo没有链接过mali的so。
请烧写debian10使用,未来我们也不会再用fedora了。
而且你这平台看过去不像是toybrick
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表