# 使用 Homebrew, apt, dnf, MacPorts, Nix, pacman 安装 clblast

查看 clblast 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:clblast
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install clblast
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install clblast
```

  证据: MacPorts ports tree: math/clblast/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install clblast-tests
```

  证据: Debian stable package indexes: clblast-tests from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install clblast
```

  证据: Fedora Rawhide package metadata: clblast from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#clblast
```

  证据: nixpkgs package indexes: pkgs/by-name/cl/clblast/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S clblast
```

  证据: Arch Linux sync databases: clblast from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:clblast
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/clblast>
- **版本:** 1.7.0
- **来源摘要:** Tuned OpenCL BLAS library
- **主页:** <https://github.com/CNugteren/CLBlast>
- **仓库:** <https://github.com/CNugteren/CLBlast>
- **上游文档:** <https://cnugteren.github.io/clblast/clblast.html>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/CNugteren/CLBlast/archive/refs/tags/1.7.0.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- clblast_tuner_copy_fast (cli)
- clblast_tuner_copy_pad (cli)
- clblast_tuner_invert (cli)
- clblast_tuner_routine_xgemm (cli)
- clblast_tuner_routine_xtrsv (cli)
- clblast_tuner_transpose_fast (cli)
- clblast_tuner_transpose_pad (cli)
- clblast_tuner_xaxpy (cli)
- clblast_tuner_xconvgemm (cli)
- clblast_tuner_xdot (cli)
- clblast_tuner_xgemm (cli)
- clblast_tuner_xgemm_direct (cli)
- clblast_tuner_xgemv (cli)
- clblast_tuner_xger (cli)
- clblast_tuner_copy_fast (别名)
- clblast_tuner_copy_pad (别名)
- clblast_tuner_invert (别名)
- clblast_tuner_routine_xgemm (别名)
- clblast_tuner_routine_xtrsv (别名)
- clblast_tuner_transpose_fast (别名)
- clblast_tuner_transpose_pad (别名)
- clblast_tuner_xaxpy (别名)
- clblast_tuner_xconvgemm (别名)
- clblast_tuner_xdot (别名)
- clblast_tuner_xgemm (别名)
- clblast_tuner_xgemm_direct (别名)
- clblast_tuner_xgemv (别名)
- clblast_tuner_xger (别名)

## 构建依赖

- cmake

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.7.0
- 本地数据: OK
- 上游仓库: https://github.com/CNugteren/CLBlast
- 检测到的最新版本: 1.7.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

CLBlast is a lightweight, tunable OpenCL BLAS library written in C++11. Its README frames it as an alternative to clBLAS and cuBLAS for users who want vendor-neutral OpenCL support, inspectable kernels, device-specific tuning, and support for a wide range of GPUs, CPUs, embedded GPUs, and accelerators.

### 项目历史

The changelog starts with version 0.1.0 as the initial preview release on GitHub, supporting a small set of level-1 and level-3 routines. Later pre-1.0 releases added broader BLAS coverage, a C API, Travis CI, MSVC support, thread safety, testing against clBLAS and CPU BLAS libraries, and tuned device parameters.

CLBlast reached 1.0.0 after adding correctness fixes, Mesa Clover and ROCm support, external performance reports, and more tuned parameters. The README cites a 2017 GTC presentation, an IWOCL 2018 presentation, and the paper 'CLBlast: A Tuned OpenCL BLAS Library' as deeper background.

### 采用历史

The upstream changelog says version 1.4.0 added Ubuntu PPA and macOS Homebrew package-manager availability, and the batch metadata lists Homebrew, Debian, Fedora, MacPorts, Nix, Arch, and Ubuntu package names. Adoption was driven by users needing a tunable OpenCL BLAS on devices not well served by fixed vendor libraries.

The README asks users with poor out-of-the-box performance to run tuners and contribute results, which made the project partly a packaged library and partly a community database of device-specific OpenCL tuning.

### 使用方式

CLBlast users compile the library with CMake, include either clblast.h or clblast_c.h, pass OpenCL buffers to routines, and optionally build samples, benchmarks, tests, and tuners. The API is intentionally close to Netlib BLAS and cuBLAS/clBLAS conventions while avoiding a library initialization step.

### 为什么软件包爱好者会关心

CLBlast is package-nerd bait because it combines portable C++ packaging, OpenCL ICD dependencies, optional CUDA backend support, Python bindings, tuners, samples, benchmarks, and a built-in tuning database. It also offers a clean contrast with clBLAS: same problem domain, but newer, more tunable, and more explicit about cross-vendor device coverage.

### 时间线

- 2017: CLBlast is presented at NVIDIA GTC and the first arXiv version of the CLBlast paper appears.
- 2018: CLBlast is presented at IWOCL and the paper is published as 'CLBlast: A Tuned OpenCL BLAS Library'.
- 1.0.0: The project reaches a stable major release with ROCm/Mesa support and external performance reports.
- 1.4.0: Ubuntu PPA and macOS Homebrew packaging are added upstream.
- 1.7.0: Parallel kernel compilation for faster tuning and CMake 4.0 compatibility are added.

### Related projects

- clBLAS is the older OpenCL BLAS library that CLBlast explicitly compares against and offers migration-compatible APIs for.
- cuBLAS is the NVIDIA CUDA BLAS library used as a contrast in the README.
- CLTune inspired the included auto-tuner according to the README's paper references.
- Netlib BLAS provides the routine model, while OpenCL provides the device API.

### 来源

- <https://github.com/CNugteren/CLBlast#readme>
- <https://raw.githubusercontent.com/CNugteren/CLBlast/master/CHANGELOG>
- <https://cnugteren.github.io/clblast/clblast.html>
- <https://arxiv.org/abs/1705.05249>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** clblast
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- Debian apt - clblast-tests - 1.6.3-1+b1: normalized package name match | Debian stable package indexes: clblast-tests from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Tests for CLBlast | https://cnugteren.github.io/clblast/clblast.html
- Debian apt - clblast-utils - 1.6.3-1+b1: normalized package name match | Debian stable package indexes: clblast-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Utilities for CLBlast | https://cnugteren.github.io/clblast/clblast.html
- Debian apt - libclblast-dev - 1.6.3-1+b1: normalized package name match | Debian stable package indexes: libclblast-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Tuned OpenCL BLAS library (development files) | https://cnugteren.github.io/clblast/clblast.html
- Debian apt - libclblast1 - 1.6.3-1+b1: normalized package name match | Debian stable package indexes: libclblast1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Tuned OpenCL BLAS library | https://cnugteren.github.io/clblast/clblast.html
- Nix - clblast: normalized package name match | nixpkgs package indexes: pkgs/by-name/cl/clblast/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - clblast-tests - 1.6.2-1: normalized package name match | Ubuntu 24.04 LTS package indexes: clblast-tests from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Tests for CLBlast | https://cnugteren.github.io/clblast/clblast.html
- Ubuntu apt - clblast-utils - 1.6.2-1: normalized package name match | Ubuntu 24.04 LTS package indexes: clblast-utils from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Utilities for CLBlast | https://cnugteren.github.io/clblast/clblast.html
- Ubuntu apt - libclblast-dev - 1.6.2-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libclblast-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Tuned OpenCL BLAS library (development files) | https://cnugteren.github.io/clblast/clblast.html
- Ubuntu apt - libclblast1 - 1.6.2-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libclblast1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Tuned OpenCL BLAS library | https://cnugteren.github.io/clblast/clblast.html
- dnf - clblast - 1.6.3-8.fc44: normalized package name match | Fedora Rawhide package metadata: clblast from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Tuned OpenCL BLAS routines | https://cnugteren.github.io/clblast/clblast.html
- dnf - clblast-clients - 1.6.3-8.fc44: normalized package name match | Fedora Rawhide package metadata: clblast-clients from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Clients for clblast | https://cnugteren.github.io/clblast/clblast.html
- dnf - clblast-devel - 1.6.3-8.fc44: normalized package name match | Fedora Rawhide package metadata: clblast-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Headers and libraries for CLBlast | https://cnugteren.github.io/clblast/clblast.html
- dnf - clblast-tuners - 1.6.3-8.fc44: normalized package name match | Fedora Rawhide package metadata: clblast-tuners from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Tuners for clblast | https://cnugteren.github.io/clblast/clblast.html
- pacman - clblast - 1.7.0-1: normalized package name match | Arch Linux sync databases: clblast from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Tuned OpenCL BLAS library | https://github.com/CNugteren/CLBlast
- MacPorts - clblast: normalized package name match | MacPorts ports tree: math/clblast/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Scientific computing packages](https://www.automicvault.com/zh-hans/pkg/scientific-computing-tools/) - Matched scientific computing metadata.
- [cmake](https://www.automicvault.com/zh-hans/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [clblas](https://www.automicvault.com/zh-hans/pkg/brew/clblas/) - Shares av.db curated category or tags: blas, cli, gpu, linear-algebra, numerical-computing.
- [flexiblas](https://www.automicvault.com/zh-hans/pkg/brew/flexiblas/) - Shares av.db curated category or tags: blas, cli, linear-algebra, numerical-computing, science.
- [gsl](https://www.automicvault.com/zh-hans/pkg/brew/gsl/) - Shares av.db curated category or tags: cli, numerical-computing, science.
- [ibex](https://www.automicvault.com/zh-hans/pkg/brew/ibex/) - Shares av.db curated category or tags: cli, numerical-computing, science.
- [itpp](https://www.automicvault.com/zh-hans/pkg/brew/itpp/) - Shares av.db curated category or tags: cli, numerical-computing, science.
- [octave](https://www.automicvault.com/zh-hans/pkg/brew/octave/) - Shares av.db curated category or tags: cli, numerical-computing, science.
- [qd](https://www.automicvault.com/zh-hans/pkg/brew/qd/) - Shares av.db curated category or tags: cli, numerical-computing, science.
- [numpy](https://www.automicvault.com/zh-hans/pkg/brew/numpy/) - Shares av.db curated category or tags: cli, linear-algebra, numerical-computing, science.

## Combined YAML source

View the package source record on GitHub. [combined/clblast.yml](https://github.com/automic-vault/db/blob/main/combined/clblast.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
