# 使用 Homebrew, dnf, MacPorts, Nix, apt, zypper 安装 kokkos

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

## 安装

```sh
sudo av install brew:kokkos
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install kokkos
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install kokkos
```

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

### Linux

- dnf (92%):

```sh
sudo dnf install kokkos
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#kokkos
```

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

- Ubuntu apt (92%):

```sh
sudo apt install kokkos
```

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

- zypper (92%):

```sh
sudo zypper install kokkos-devel
```

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

## 软件包事实

- **软件包键:** brew:kokkos
- **软件包管理器:** Homebrew
- **版本:** 5.2.0
- **来源摘要:** C++ Performance Portability Ecosystem for parallel execution and abstraction
- **主页:** <https://kokkos.org>
- **仓库:** <https://github.com/kokkos/kokkos>
- **最后更新:** 2026-07-25T00:56:53Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- hpcbind (别名)
- kokkos_launch_compiler (别名)
- nvcc_wrapper (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 5.2.0
## 项目历史与用法

Kokkos is a C++ performance-portability ecosystem for writing parallel code that can target different CPU and accelerator backends. The Homebrew package exposes developer tools such as nvcc_wrapper and kokkos_launch_compiler, making a large HPC programming model feel like a normal installable developer dependency.

### 项目历史

Kokkos originated in the U.S. Department of Energy national-lab HPC world, with Sandia National Laboratories as the original developer. Its early evolution moved from node abstractions around 2008-2010 into a fuller programming model around 2010-2014, combining execution abstractions with data abstractions.

The 2014 Kokkos paper described the core idea: applications and domain libraries need performance portability across manycore architectures, and memory access patterns are as important as parallel execution. Sandia describes the Kokkos ecosystem as released in 2017 to provide a vendor-independent performance-portable programming system for scientific, engineering, and mathematical C++ applications.

The project later became part of the Linux Foundation's High Performance Software Foundation ecosystem. Kokkos documentation describes Core as the programming model, with related projects for math kernels, profiling/debugging tools, Python bindings, remote spaces, and resilience/checkpointing.

### 采用历史

Kokkos adoption tracks the HPC shift from single-architecture tuning toward heterogeneous systems with NVIDIA, AMD, Intel, and CPU backends. Its support for CUDA, HIP, SYCL, HPX, OpenMP, and C++ threads made it a common portability layer for DOE and scientific codes preparing for exascale machines.

Package-manager adoption matters because Kokkos is often both a library dependency and a compiler-wrapper/tooling dependency. Making it available through Homebrew, Linux distribution packages, MacPorts, Nix, and openSUSE helps developers test and build performance-portable code outside facility-specific software stacks.

### 使用方式

Users build C++ applications against Kokkos Core to express parallel execution policies and memory spaces without hard-coding one backend. The package's CLI-visible tools support compilation flows, especially CUDA-oriented builds through wrappers such as nvcc_wrapper.

In practice, Kokkos often appears inside larger scientific applications and libraries rather than as an end-user command. Its package entry is still valuable because the build system has to find headers, libraries, compiler wrappers, enabled backends, and compatible C++ compiler settings.

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

Kokkos is a stress test for package systems because it is C++, HPC, backend-sensitive, and toolchain-sensitive. A good package has to expose enough knobs for OpenMP, CUDA, HIP, SYCL, and compiler integration without making every user rebuild a bespoke supercomputer stack.

It is also a marker of HPC software moving into mainstream package indexes. Homebrew carrying Kokkos means macOS and workstation developers can inspect, compile, and prototype with an exascale-era programming model before moving to clusters.

### 时间线

- 2008-2010: Kokkos history materials describe early node abstractions and sparse-kernel work.
- 2010-2014: Kokkos evolved into a complete programming model with execution and data abstractions.
- 2014: The original Kokkos paper appeared in Journal of Parallel and Distributed Computing.
- 2017: Sandia describes the Kokkos ecosystem as released for vendor-independent performance portability.
- 2020-02-28: GitHub release metadata records Kokkos 3.0.00.
- 2023-03-03: GitHub release metadata records Kokkos 4.0.00.

### Related projects

- The Kokkos ecosystem includes kokkos-kernels, kokkos-tools, pykokkos, kokkos-remote-spaces, and kokkos-resilience. It is used alongside HPC projects and libraries such as Trilinos and LAMMPS, and conceptually relates to RAJA, OpenMP, CUDA, HIP, SYCL, and C++ standardization efforts such as mdspan.

### 来源

- <https://api.github.com/repos/kokkos/kokkos/releases>
- <https://kokkos.org/about/overview/>
- <https://kokkos.org/kokkos-core-wiki/>
- <https://kokkos.org/kokkos-core-wiki/citation.html>
- <https://www.osti.gov/servlets/purl/1765805>
- <https://www.sandia.gov/news/publications/hpc-annual-reports/article/kokkos/>


## 安全说明

没有找到 kokkos 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


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

- Nix - kokkos: normalized package name match | nixpkgs package indexes: pkgs/by-name/ko/kokkos/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - kokkos - 3.7.01-2.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: kokkos from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++ Performance Portability Programming | https://github.com/kokkos/kokkos
- Ubuntu apt - libkokkos-dev - 3.7.01-2.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libkokkos-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++ Performance Portability Programming | https://github.com/kokkos/kokkos
- Ubuntu apt - libkokkos3.7 - 3.7.01-2.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libkokkos3.7 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++ Performance Portability Programming | https://github.com/kokkos/kokkos
- dnf - kokkos - 5.1.1-1.fc45: normalized package name match | Fedora Rawhide package metadata: kokkos from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Kokkos C++ Performance Portability Programming | https://github.com/kokkos/kokkos
- dnf - kokkos-devel - 5.1.1-1.fc45: normalized package name match | Fedora Rawhide package metadata: kokkos-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development package for kokkos packages | https://github.com/kokkos/kokkos
- dnf - kokkos-rocm - 5.1.1-1.fc45: normalized package name match | Fedora Rawhide package metadata: kokkos-rocm from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | kokkos ROCm package | https://github.com/kokkos/kokkos
- dnf - kokkos-rocm-devel - 5.1.1-1.fc45: normalized package name match | Fedora Rawhide package metadata: kokkos-rocm-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | kokkos ROCm development package | https://github.com/kokkos/kokkos
- zypper - kokkos-devel - 5.1.1-1.3: normalized package name match | openSUSE Tumbleweed package metadata: kokkos-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development package for kokkos packages | https://github.com/kokkos/kokkos
- zypper - libkokkos-5_1 - 5.1.1-1.3: normalized package name match | openSUSE Tumbleweed package metadata: libkokkos-5_1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A C++ Performance Portability Programming Library | https://github.com/kokkos/kokkos
- MacPorts - kokkos: normalized package name match | MacPorts ports tree: devel/kokkos/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/kokkos.yml](https://github.com/mxcl/pkgdb/blob/main/combined/kokkos.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
