# opencoarrays を Homebrew, MacPorts, Nix でインストール

opencoarrays のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:opencoarrays
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install opencoarrays
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install OpenCoarrays
```

  証拠: MacPorts ports tree: science/OpenCoarrays/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#caf
```

  証拠: nixpkgs package indexes: pkgs/by-name/ca/caf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:opencoarrays
- **パッケージマネージャ:** Homebrew
- **バージョン:** 2.10.3
- **ソース概要:** Open-source coarray Fortran ABI, API, and compiler wrapper
- **ホームページ:** <http://www.opencoarrays.org>
- **リポジトリ:** <https://github.com/sourceryinstitute/opencoarrays>
- **最終更新:** 2026-06-22T14:05:42-07:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- caf (エイリアス)
- cafrun (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 2.10.3
## プロジェクトの歴史と使われ方

OpenCoarrays is an open-source runtime and ABI layer for Coarray Fortran, aimed primarily at letting GNU Fortran programs use Fortran's standardized multi-image parallel features without writing directly against MPI. The package supplies the `caf` compiler wrapper, the `cafrun` launcher, and the `libcaf_mpi` runtime library.

### プロジェクトの歴史

Coarrays entered standard Fortran as a PGAS-style parallel programming model in Fortran 2008, but free compiler support depended on a runtime that could map language-level image communication onto existing communication libraries. The OpenCoarrays project filled that role for GCC by providing an ABI between gfortran and a backend such as MPI.

A 2014 PGAS workshop paper described OpenCoarrays as a new project offering open-source transport layers for coarray Fortran compilers, including MPI and GASNet-based approaches. The 1.0.0 release was announced in July 2015 with the runtime library, compiler wrapper, and launcher, and the announcement noted that GNU Fortran 5.1.0 used OpenCoarrays to support most Fortran 2008 coarray features and some proposed Fortran 2015 TS 18508 features.

### 採用の歴史

The project's most important adoption path was through GCC: the OpenCoarrays README says the OpenCoarrays ABI was adopted by gfortran in GCC 5.1.0. That made OpenCoarrays part of the practical route for package managers and HPC users who wanted Coarray Fortran through a free compiler toolchain rather than a vendor compiler.

Packaging spread into Unix package systems such as Homebrew, MacPorts, FreeBSD ports, Nix, and Linux distributions, usually as a science or parallel-computing package. MacPorts summarizes the project as an ABI for gfortran support of coarrays and other Fortran 2018 parallel programming features.

### 使われ方

Developers compile coarray programs through `caf`, which wraps the selected Fortran compiler and links the OpenCoarrays runtime consistently with the MPI stack used at build time. They launch multi-image programs with `cafrun`, avoiding direct MPI command-line details in routine Coarray Fortran workflows.

OpenCoarrays is especially relevant for scientific and HPC Fortran users who want to experiment with standard-language parallelism, compare coarray code with MPI implementations, or package Fortran applications that rely on gfortran's coarray support.

### パッケージ好きにとっての重要性

OpenCoarrays is a small package with an outsized toolchain role: it is not just another Fortran library, but the runtime side of a compiler feature. That makes ABI compatibility, MPI selection, compiler version, and wrapper behavior more important than they are for ordinary numerical libraries.

### タイムライン

- 2014: OpenCoarrays was described in PGAS workshop material as a new open-source transport-layer project for coarray Fortran compilers.
- 2015: GCC 5.1.0 adopted the OpenCoarrays ABI for gfortran coarray support, and OpenCoarrays 1.0.0 was announced with `libcaf_mpi`, `caf`, and `cafrun`.
- 2022: Caffeine work at Lawrence Berkeley National Laboratory pointed toward a compiler-independent Fortran runtime direction built on GASNet-EX, related to the longer-term evolution beyond the MPI-focused OpenCoarrays path.

### Related projects

- OpenCoarrays sits alongside GCC/gfortran, MPI implementations, GASNet-EX, Caffeine, and the broader Fortran 2008/2018/2023 parallel-language standards work.

### ソース

- <https://github.com/berkeleylab/caffeine>
- <https://github.com/sourceryinstitute/OpenCoarrays/blob/main/README.md>
- <https://groups.google.com/g/comp.lang.fortran/c/Dm-KY5wivQk>
- <https://nic.uoregon.edu/pgas14/papers/pgas14_submission_7.pdf>
- <https://ports.macports.org/port/OpenCoarrays/summary/>
- <https://www.opencoarrays.org/>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## 他のパッケージマネージャ記録

- MacPorts - OpenCoarrays: normalized package name match | MacPorts ports tree: science/OpenCoarrays/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Nix - caf: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/ca/caf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/opencoarrays.yml](https://github.com/mxcl/pkgdb/blob/main/combined/opencoarrays.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
