PHPackages                             rindow/rindow-clblast-ffi - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. rindow/rindow-clblast-ffi

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rindow/rindow-clblast-ffi
=========================

The CLBlast interface for FFI on PHP

1.0.4(1y ago)14551BSD-3-ClausePHPPHP ^8.1CI passing

Since Mar 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/rindow/rindow-clblast-ffi)[ Packagist](https://packagist.org/packages/rindow/rindow-clblast-ffi)[ RSS](/packages/rindow-rindow-clblast-ffi/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (5)Versions (6)Used By (1)

The CLBlast interface for FFI on PHP
====================================

[](#the-clblast-interface-for-ffi-on-php)

Status: [![Build Status](https://github.com/rindow/rindow-clblast-ffi/workflows/tests/badge.svg)](https://github.com/rindow/rindow-clblast-ffi/actions)[![Downloads](https://camo.githubusercontent.com/3c83f2f535f592478cc22f7f48f4ae000d23ceeb42e1ac83bb722fdc3528118b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72696e646f772f72696e646f772d636c626c6173742d666669)](https://packagist.org/packages/rindow/rindow-clblast-ffi)[![Latest Stable Version](https://camo.githubusercontent.com/1ecc88735acf80934e32e324257fd6b0c3b6829877a66acab0e20e806bd787ec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72696e646f772f72696e646f772d636c626c6173742d666669)](https://packagist.org/packages/rindow/rindow-clblast-ffi)[![License](https://camo.githubusercontent.com/c6c70428d4af302039b6476186e8a8924816925da834bc0d106a967003bb491a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f72696e646f772f72696e646f772d636c626c6173742d666669)](https://packagist.org/packages/rindow/rindow-clblast-ffi)

"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](https://rindow.github.io/mathematics/acceleration/opencl.html#rindow-clblast-ffi) web pages.

Requirements
============

[](#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 &amp; CLBlast
=================================

[](#how-to-setup-opencl--clblast)

You can download and setup pre-built CLBlast binaries. Please download the binaries for your platform.

-

### Windows

[](#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

[](#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
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance47

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~96 days

Total

5

Last Release

398d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d06646842e737ff51d26230fde1c977f60763e198eb82946c1a64f8aa90d743b?d=identicon)[yuichiis](/maintainers/yuichiis)

---

Top Contributors

[![yuichiis](https://avatars.githubusercontent.com/u/6028098?v=4)](https://github.com/yuichiis "yuichiis (7 commits)")

---

Tags

blasclblastgpgpugpumachine-learningmathematicsopenclphpphp8mathrindowffiopenclclblast

### Embed Badge

![Health badge](/badges/rindow-rindow-clblast-ffi/health.svg)

```
[![Health](https://phpackages.com/badges/rindow-rindow-clblast-ffi/health.svg)](https://phpackages.com/packages/rindow-rindow-clblast-ffi)
```

###  Alternatives

[brick/math

Arbitrary-precision arithmetic library

2.1k504.0M277](/packages/brick-math)[markrogoyski/math-php

Math Library for PHP. Features descriptive statistics and regressions; Continuous and discrete probability distributions; Linear algebra with matrices and vectors, Numerical analysis; special mathematical functions; Algebra

2.4k7.1M40](/packages/markrogoyski-math-php)[phpseclib/bcmath_compat

PHP 5.x-8.x polyfill for bcmath extension

16720.7M17](/packages/phpseclib-bcmath-compat)[rubix/tensor

A library and extension that provides objects for scientific computing in PHP.

2751.4M5](/packages/rubix-tensor)[rindow/rindow-math-matrix

The fundamental package for scientific matrix operation

13281.5k7](/packages/rindow-rindow-math-matrix)[jlawrence/eos

Parse and solve math equations without using 'eval()'.

1071.1M11](/packages/jlawrence-eos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
