View: 8511|Reply: 2

OrangePi4B怎样安装OpenCL?

[Copy link]

2

threads

3

posts

16

credits

Novice

Rank: 1

credits
16
Published in 2020-3-9 15:30:47 | Show all floors |Read mode
root@OrangePi:~/projects/OrangePi4B/bin/ARM64/Debug# clinfo
-bash: clinfo: command not found
root@OrangePi:~/projects/OrangePi4B/bin/ARM64/Debug# find / -name "*opencl*"
find: ‘/run/user/107/gvfs’: Permission denied
/usr/share/mime/text/x-opencl-src.xml
/usr/share/lintian/overrides/ocl-icd-libopencl1
/usr/share/doc-base/ocl-icd-libopencl1
/usr/share/doc/ocl-icd-libopencl1
/usr/include/hwloc/opencl.h
/usr/include/boost/compute/exception/opencl_error.hpp
/usr/include/gdal/gdalwarpkernel_opencl.h
/usr/include/tbb/flow_graph_opencl_node.h
/usr/lib/aarch64-linux-gnu/hwloc/hwloc_opencl.so
/var/lib/dpkg/info/ocl-icd-libopencl1:arm64.list
/var/lib/dpkg/info/ocl-icd-libopencl1:arm64.triggers
/var/lib/dpkg/info/ocl-icd-libopencl1:arm64.symbols
/var/lib/dpkg/info/ocl-icd-libopencl1:arm64.shlibs
/var/lib/dpkg/info/ocl-icd-libopencl1:arm64.md5sums
apt install clinfo

root@OrangePi:~/projects/OrangePi4B/bin/ARM64/Debug# clinfo
Number of platforms                               0
如何安装OpenCL?


2

threads

3

posts

16

credits

Novice

Rank: 1

credits
16
 Author| Published in 2020-3-11 16:21:15 | Show all floors
Edited by warm_dawn at 2020-3-11 16:23

终于解决了
方法:
sudo apt-get install ocl-icd-opencl-dev
sudo apt-get install ocl-icd-libopencl1
find / -name "libmali.so"
获得路径忘了记 且称之为:mali_so_path(完整路径 /usr/xxx/xxx/libmali.so)
创建/etc/OpenCL/vendors/mali.icd文件
文件内容就是mali_so_path

2

threads

7

posts

30

credits

Novice

Rank: 1

credits
30
Published in 2020-11-23 14:15:06 | Show all floors
Edited by mandresve at 2020-11-23 14:38

Did you manage to install it? Maybe I can help you...
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list