# Install clblas with Homebrew, MacPorts, Nix, apt, zypper

Library containing BLAS functions written in OpenCL. Version 2.12 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install clblas
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install clblas
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:clblas
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/clblas>
- **Version:** 2.12
- **Source summary:** Library containing BLAS functions written in OpenCL
- **Homepage:** <https://github.com/clMathLibraries/clBLAS>
- **Repository:** <https://github.com/clMathLibraries/clBLAS>
- **Upstream docs:** <https://clmathlibraries.github.io/clBLAS>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/clMathLibraries/clBLAS/archive/refs/tags/v2.12.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- clBLAS-tune (cli)
- clBLAS-tune (alias)

## Build dependencies

- boost
- cmake

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.12
- Local data: ok
- Upstream repository: https://github.com/clMathLibraries/clBLAS
- Upstream latest detected: v2.12 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

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


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

- **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

## Other Package-Manager Records

- 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


## Related links

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


## Sources

- 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
