# 使用 Homebrew, MacPorts, Nix, apt, zypper 安装 clblas

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

## 安装

```sh
sudo av install brew:clblas
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install clblas
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install clblas
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#clblas
```

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

- Ubuntu apt (92%):

```sh
sudo apt install clblas-client
```

  证据: Ubuntu 24.04 LTS package indexes: clblas-client from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

- zypper (92%):

```sh
sudo zypper install clBLAS-devel
```

  证据: openSUSE Tumbleweed package metadata: clBLAS-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## 软件包事实

- **软件包键:** brew:clblas
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/clblas>
- **版本:** 2.12
- **来源摘要:** Library containing BLAS functions written in OpenCL
- **主页:** <https://github.com/clMathLibraries/clBLAS>
- **仓库:** <https://github.com/clMathLibraries/clBLAS>
- **上游文档:** <https://clmathlibraries.github.io/clBLAS>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/clMathLibraries/clBLAS/archive/refs/tags/v2.12.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- clBLAS-tune (cli)
- clBLAS-tune (别名)

## 构建依赖

- boost
- cmake

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

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

clBLAS is the OpenCL BLAS component of AMD's clMath libraries. Its README describes a full BLAS level 1, 2, and 3 implementation that generates and enqueues optimized OpenCL kernels while leaving OpenCL state management under user control.

### 项目历史

The repository changelog carries AMD copyright from 2013 and records version 1.0 as the initial release, initially Linux64-only. Version 1.10 in April 2013 expanded level-1 coverage and tested against AMD APP SDK and runtime driver versions.

The modern README says the repository houses the OpenCL BLAS portion of clMath and that APPML 1.12 was the current generally available pre-packaged binary release for Linux and Windows. A January 2017 update note identifies v2.12 as a bugfix rollup from the develop branch.

### 采用历史

clBLAS became a packaged OpenCL numerical library for developers targeting heterogeneous computing before vendor-neutral GPU math stacks consolidated. The batch metadata lists Homebrew, MacPorts, Nix, Ubuntu, and openSUSE packaging, with related client/development package names.

Its upstream release train appears to have slowed after the 2.12 bugfix rollup, but the package remains historically important as one of the recognizable OpenCL BLAS implementations available through Unix package managers.

### 使用方式

Developers use clBLAS by creating OpenCL contexts, queues, and buffers, calling clblasSetup, invoking BLAS routines such as clblasSgemm, waiting for events, reading buffers, and finally calling clblasTeardown. The README example shows this explicit OpenCL-buffer style.

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

clBLAS matters to package nerds because it packages GPU math as a shared library plus tooling in a way that depends on OpenCL ICDs, driver quality, CPU/GPU device behavior, and architecture-specific correctness. Its changelog is full of driver, GPU-family, and routine-specific caveats, the kind of details that make numerical GPU libraries unusually packaging-sensitive.

### 时间线

- 2013: Version 1.0 is recorded as the initial release.
- 2013: Version 1.10 is released in April with additional level-1 routines.
- 2017: Version 2.12 is described as a bugfix rollup from the develop branch.
- 2017: v2.12 tags are present in the official Git repository.

### Related projects

- clMath is the broader AMD library family named by the README.
- OpenCL is the compute API used directly by clBLAS callers.
- Netlib BLAS is the routine model referenced by the README.
- clMAGMA appears in the changelog as a test/compatibility consumer.
- CLBlast is a later tunable OpenCL BLAS library that explicitly compares itself with clBLAS.

### 来源

- <https://github.com/clMathLibraries/clBLAS#readme>
- <https://raw.githubusercontent.com/clMathLibraries/clBLAS/master/CHANGELOG>
- <https://github.com/clMathLibraries/clBLAS/wiki>


## 安全说明

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:** clblas
- **Version Scheme:** 0
- **Revision:** 1
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Nix - clblas: normalized package name match | nixpkgs package indexes: pkgs/by-name/cl/clblas/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - clblas-client - 2.12-4.1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: clblas-client from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | client program for clBLAS | https://github.com/clMathLibraries/clBLAS
- Ubuntu apt - libclblas-dev - 2.12-4.1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libclblas-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | development files for clBLAS | https://github.com/clMathLibraries/clBLAS
- Ubuntu apt - libclblas-doc - 2.12-4.1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libclblas-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | documentation for clBLAS | https://github.com/clMathLibraries/clBLAS
- Ubuntu apt - libclblas2t64 - 2.12-4.1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libclblas2t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | OpenCL BLAS library | https://github.com/clMathLibraries/clBLAS
- zypper - clBLAS-devel - 2.12+git.20170323.cf91139-3.3: normalized package name match | openSUSE Tumbleweed package metadata: clBLAS-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Headers and devel files for clBLAS - a BLAS library for OpenCL | https://github.com/clMathLibraries/clBLAS
- zypper - libclBLAS2 - 2.12+git.20170323.cf91139-3.3: normalized package name match | openSUSE Tumbleweed package metadata: libclBLAS2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Shared library for clBLAS - a BLAS library for OpenCL | https://github.com/clMathLibraries/clBLAS
- MacPorts - clblas: normalized package name match | MacPorts ports tree: math/clblas/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.
- [clblast](https://www.automicvault.com/zh-hans/pkg/brew/clblast/) - 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/clblas.yml](https://github.com/automic-vault/db/blob/main/combined/clblas.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
