rindow/rindow-clblast-ffi
Composer 安装命令:
composer require rindow/rindow-clblast-ffi
包简介
The CLBlast interface for FFI on PHP
README 文档
README
"The CLBlast ffi" is a interface for the CLBlast library. Available in libraries with FFI interface.
Please see the documents about Buffer objects on Rindow Mathematics web pages.
Requirements
- PHP 8.1, PHP8.2, PHP8.3, PHP8.4
- CLBlast 1.5.1 or later
- Windows 10/11, Ubuntu(Recommends 2204-), Debian(Recommends 12-), or later
How to setup OpenCL & CLBlast
You can download and setup pre-built CLBlast binaries. Please download the binaries for your platform.
Windows
CLBlast and OpenBLAS DLL's path to Windows PATH environment variable.
C:\tmp>PATH %PATH%;/path/to/OpenBLAS/bin;/path/to/CLBlast-Library/lib C:\tmp>cd /some/app/directory C:\app\dir>composer require rindow/rindow-clblast-ffi
Ubuntu
On Linux, you first need to set up OpenCL.
For example, in the case of Ubuntu standard AMD driver, install as follows
$ sudo apt install clinfo $ sudo apt install mesa-opencl-icd $ sudo mkdir -p /usr/local/usr/lib $ sudo ln -s /usr/lib/clc /usr/local/usr/lib/clc
Ubuntu standard OpenCL drivers include:
- mesa-opencl-icd
- beignet-opencl-icd
- intel-opencl-icd
- nvidia-opencl-icd-xxx
- pocl-opencl-icd
Next, Setup clblast.
Install clbast on Ubuntu 22.04 or Debian 12 or later.
$ sudo apt install libclblast1
If you use Ubuntu 20.04 or Debian 11, download and Extract Archive file and Pack to deb
$ cd /some/app/directory $ composer require rindow/rindow-clblast-ffi $ cp vendor/rindow/rindow-clblast-ffi/clblast-packdeb.sh . $ sh ./clblast-packdeb.sh $ sudo apt install ./clblast_X.X.X_amd64.deb
And then, Please install rindow-clblast-ffi if you have not already done so.
$ cd /some/app/directory
$ composer require rindow/rindow-clblast-ffi
rindow/rindow-clblast-ffi 适用场景与选型建议
rindow/rindow-clblast-ffi 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 470 次下载、GitHub Stars 达 1, 最近一次更新时间为 2024 年 03 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「math」 「ffi」 「rindow」 「opencl」 「clblast」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 rindow/rindow-clblast-ffi 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 rindow/rindow-clblast-ffi 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 rindow/rindow-clblast-ffi 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP FFI Environment
LaTeX formula to PNG
SDL FFI bindings for the PHP language
Partition problem for balanced arrays splitting made easy.
Simple, chainable calculation library.
Easy to use arithmetic operations for decimals in PHP (using BCMath)
统计信息
- 总下载量: 470
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 21
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2024-03-18