Install OpenCL on Raspberry Pi 3B+ with Stretch/Ubuntu OS

这篇博客指导如何在Raspberry Pi上安装OpenCL,首先介绍了从Raspbian Stretch升级到Ubuntu OS的步骤,然后详细说明了使用vc4cl-stdlib-0.4-Linux.deb包安装OpenCL的过程,包括克隆VC4CL源码、编译和安装。此外,还解决了‘Number of platforms 0’的问题,通过创建配置文件并修改环境变量实现。最后,提供了下载Raspbian Stretch旧版本的链接。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Install OpenCL on Raspberry Pi with Raspbian Stretch OS

Install Ubuntu OS

Install OpenCL using vc4cl-stdlib-0.4-Linux.deb , which is avaiable from https://github.com/doe300/VC4C/releases
https://abhitronix.github.io/2019/01/15/VC4CL-1/

sudo apt install git g++ cmake pkg-config clang-format
git clone https://github.com/doe300/VC4CL.git
cd VC4CL
cmake ..
make
sudo make install

# To the issue "Number of platforms   0", you should do the following configuration
# Manual configuration: Create a file /etc/OpenCL/vendors/VC4CL.icd with a single line containing the absolute path to the VC4CL library (/usr/local/lib/libVC4CL.so).
执行vi .bashrc,弹出profile文本文件,在最后加入下面的代码
export LD_PRELOAD=/usr/local/lib/libVC4CL.so
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
source .bashrc
clinfo

Download Raspbian Stretch

I believe you are looking for an older download version of Stretch rather than the smart arse answer :

Older download version of Raspberry Pi OS
64bit version of Raspberry Pi OS
This gives all previous versions released if you don’t want buster at the moment.it doesn’t however give an option including recommended software although that’s easily resolved once booted

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值