Skip to content

Commit e55eb21

Browse files
committed
Add badges, links to top, and footer in INSTALL.md
[ci skip]
1 parent 5df2c38 commit e55eb21

File tree

1 file changed

+49
-17
lines changed

1 file changed

+49
-17
lines changed

INSTALL.md

Lines changed: 49 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
Installing OpenCoarrays
88
=======================
99

10+
[![GitHub release](https://img.shields.io/github/release/sourceryinstitute/opencoarrays.svg?style=flat-square)](https://github.com/sourceryinstitute/opencoarrays/releases/latest)
11+
[![Github All Releases](https://img.shields.io/github/downloads/sourceryinstitute/opencoarrays/total.svg?style=flat-square)](https://github.com/sourceryinstitute/opencoarrays/releases/latest)
1012
[![Download as PDF][pdf img]](http://md2pdf.herokuapp.com/sourceryinstitute/opencoarrays/blob/master/INSTALL.pdf)
1113

1214
Download this file as a PDF document
@@ -28,14 +30,18 @@ End-User Installation
2830
---------------------
2931

3032
Most users will find it easiest and fastest to use package management software to install OpenCoarrays.
31-
Package management options for macOS (formerly known as OS X), Windows, and Linux are described first
33+
Package management options for macOS (formerly known as OS X), Windows, and Linux are described first
3234
below. Also described below are options for installing via the Sourcery Institute virtual machine or
3335
the OpenCoarrays installation script.
3436

37+
[top]
38+
3539
### macOS ###
3640

41+
[![homebrew](https://img.shields.io/homebrew/v/opencoarrays.svg?style=flat-square)](http://braumeister.org/formula/opencoarrays)
42+
3743
OS X users may use the [Homebrew] or [MacPorts] package management systems to install OpenCoarrays.
38-
We recommend [Homebrew].
44+
We recommend [Homebrew].
3945

4046
Homebrew installation steps:
4147
```
@@ -49,43 +55,49 @@ sudo port selfupdate
4955
sudo port upgrade outdated
5056
sudo port install opencoarrays
5157
```
52-
where the `sudo` command requires administrator privileges. If you install using MacPorts, please
58+
where the `sudo` command requires administrator privileges. If you install using MacPorts, please
5359
also install the `mpstats` port as follows:
5460
```
5561
sudo port install mpstats
5662
```
5763
which supports future OpenCoarrays development by providing download data the OpenCoarrays team
5864
uses in proposals for research grants and development contracts.
5965

66+
[top]
67+
6068
### Windows ###
6169

6270
Windows users may run the windows-install.sh script inside the Windows Subsystem for Linux (WSL).
6371

6472
Requirements:
6573
* WSL release 14936 or later,
66-
* Windows Insider Preview, and
74+
* Windows Insider Preview, and
6775
* "Fast" updates option.
6876

6977
Steps:
7078
```
7179
do-release-upgrade
72-
./windows-install.sh
80+
./windows-install.sh
7381
```
7482
where the first command above updates the default Ubuntu 14.04 to 16.04 and the second command must
7583
be executed with the present working directory set to the top level of the OpenCoarrays source tree.
7684

77-
The `windows-install.sh` installation script uses Ubuntu's `apt-get` package manager to build
78-
[GCC] 5.4.0, [CMake], and [MPICH]. Windows users who desire a newer version of GCC are welcome to
79-
submit a request via our [Issues] page and suggest a method for updating. Previously attempted
85+
The `windows-install.sh` installation script uses Ubuntu's `apt-get` package manager to build
86+
[GCC] 5.4.0, [CMake], and [MPICH]. Windows users who desire a newer version of GCC are welcome to
87+
submit a request via our [Issues] page and suggest a method for updating. Previously attempted
8088
upgrade methods are described in the discussion thread starting with [commit comment 20539810].
8189

90+
[top]
91+
8292
### Linux ###
8393

8494
The [Arch Linux] distribution provides an [aur package] for installing OpenCoarrays. Users of
8595
other Linux distributions may install the [Virtual machine] or use the [Installation Script].
86-
Alternatively, if you desire to install using other Linux package Linux package management
96+
Alternatively, if you desire to install using other Linux package Linux package management
8797
software such as [dnf] or [apt-get], please submit a feature request via our [Issues] page.
8898

99+
[top]
100+
89101
## Virtual machine ##
90102

91103
Users of macOS, Windows, or Linux have the option to use OpenCoarrays by installing the Lubuntu
@@ -95,11 +107,13 @@ and OpenCoarrays, the virtual machine contains dozens of other open-source softw
95107
that support modern Fortran software development. See the [download and installation instructions]
96108
for a partial list of the included packages.
97109

110+
[top]
111+
98112
## Installation Script ##
99113

100114
If the above package management or virtualization options are infeasible or unavailable,
101-
Linux and macOS users may also install OpenCoarrays by downloading and uncompressing our
102-
[latest release] and running our installation script in the top-level OpenCoarrays source
115+
Linux and macOS users may also install OpenCoarrays by downloading and uncompressing our
116+
[latest release] and running our installation script in the top-level OpenCoarrays source
103117
directory (see above for the corresponding [Windows] script):
104118
```
105119
tar xvzf OpenCoarrays-x.y.z.tar.gz
@@ -125,16 +139,17 @@ inside the installation path (.e.g, inside `build` in the above example):
125139
* `mod`: contains the `opencoarrays.mod` module file for use with non-OpenCoarrays-aware compilers
126140
* `lib`: contains the `libcaf_mpi.a` static library to which codes link for CAF support
127141

142+
[top]
128143

129144
Advanced Installation from Source
130145
---------------------------------
131146

132147
### Prerequisites: ###
133148

134-
The prerequisites below and their dependencies are recommended for the broadest coverage of CAF features.
135-
If a prerequisite is missing or outdated, the [install.sh] script will prompt the user for permission to
136-
download, compile, and install it. Before doing so, [install.sh] will verify whether that prerequisite's
137-
prerequisites are present and will recursively traverse the dependency tree until reaching an acceptable
149+
The prerequisites below and their dependencies are recommended for the broadest coverage of CAF features.
150+
If a prerequisite is missing or outdated, the [install.sh] script will prompt the user for permission to
151+
download, compile, and install it. Before doing so, [install.sh] will verify whether that prerequisite's
152+
prerequisites are present and will recursively traverse the dependency tree until reaching an acceptable
138153
prerequisite or reaching the end of a branch.
139154

140155
```
@@ -152,6 +167,8 @@ opencoarrays
152167

153168
If using the advanced [CMake] or [Make] builds detailed below, please ensure that these dependencies are met before attempting to build and install OpenCoarrays.
154169

170+
[top]
171+
155172
### CMake scripts ###
156173

157174
#### N.B.: ####
@@ -199,7 +216,7 @@ Advanced options (most users should not use these):
199216
-DMPI_HOME=/path/to/mpi/dir # try to force CMake to find your preferred MPI implementation
200217
# OR
201218
-DMPI_C_COMPILER=/path/to/c/wrapper
202-
-DMPI_Fortran_COMPILER=/path/to/fortran/wrapper
219+
-DMPI_Fortran_COMPILER=/path/to/fortran/wrapper
203220

204221
-DLEGACY_ARCHITECTURE=OFF # enables the use of FFT libraries that employ AVX instructions
205222
-DHIGH_RESOLUTION_TIMER=ON # enables timers that tick once per clock cycle
@@ -211,6 +228,8 @@ The fourth and fifth flags above are not portable and the sixth enables code tha
211228
of release 1.0.0. The eighth is set automatically by the CMake scripts based on the compiler
212229
identity and version.
213230

231+
[top]
232+
214233
### Make ###
215234

216235
Unlike the Makefiles that CMake generates automatically for the chosen platform, static
@@ -237,10 +256,12 @@ system settings. For example, you might need to remove the `-Werror` option fro
237256
compiler flags or name a different compiler. In order to activate efficient strided-array
238257
transfer support, uncomment the `-DSTRIDED` flag inside the [make.inc] file.
239258

259+
[top]
260+
240261
Obtaining GCC, MPICH, and CMake
241262
-------------------------------
242263

243-
[GFortran Binaries] binary builds are available at <https://gcc.gnu.org/wiki/GFortranBinaries>.
264+
[GFortran Binaries] binary builds are available at <https://gcc.gnu.org/wiki/GFortranBinaries>.
244265

245266
To build all prerequisites from source, including the current development branch of GCC,
246267
you might first try the running the provided [install.sh] script as described above in
@@ -260,8 +281,19 @@ export gcc_install_path=/desired/installation/destination
260281
--with-cxx "${gcc_install_path}"/bin/g++
261282
```
262283

284+
[top]
285+
286+
---
287+
288+
[![GitHub forks](https://img.shields.io/github/forks/sourceryinstitute/opencoarrays.svg?style=social&label=Fork)](https://github.com/sourceryinstitute/opencoarrays/fork)
289+
[![GitHub stars](https://img.shields.io/github/stars/sourceryinstitute/opencoarrays.svg?style=social&label=Star)](https://github.com/sourceryinstitute/opencoarrays)
290+
[![GitHub watchers](https://img.shields.io/github/watchers/sourceryinstitute/opencoarrays.svg?style=social&label=Watch)](https://github.com/sourceryinstitute/opencoarrays)
291+
[![Twitter URL](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?hashtags=HPC,Fortran,PGAS&related=zbeekman,gnutools,HPCwire,HPC_Guru,hpcprogrammer,SciNetHPC,DegenerateConic,jeffdotscience,travisci&text=Stop%20programming%20w%2F%20the%20%23MPI%20docs%20in%20your%20lap%2C%20try%20Coarray%20Fortran%20w%2F%20OpenCoarrays%20%26%20GFortran!&url=https%3A//github.com/sourceryinstitute/opencoarrays)
292+
293+
263294
[Internal document links]: #
264295

296+
[top]: #top
265297
[End-User Installation]: #end-user-installation
266298
[macOS]: #macos
267299
[Windows]: #windows

0 commit comments

Comments
 (0)