|
| 1 | +.TH CAF 1 2017\-09\-12 OpenCoarrays\-1.9.1 "caf compiler wrapper manual" |
| 2 | +.SH NAME |
| 3 | +.PP |
| 4 | +caf \- OpenCoarrays compiler wrapper to compile and link coarray Fortran source files and programs |
| 5 | +.SH SYNOPSIS |
| 6 | +.PP |
| 7 | +\fB\fCcaf\fR [compiler\-options] [linker\-options] \fI<fortran\-source\-file>\fP [\fIobject\-files\fP] [libraries] |
| 8 | +.SH DESCRIPTION |
| 9 | +.PP |
| 10 | +\fB\fCcaf\fR is a compiler wrapper script which is generated when the OpenCoarrays library \[la]https://github.com/sourceryinstitute/OpenCoarrays#readme\[ra] that ensures coarray fortran programs are compiled with the same fortran compiler OpenCoarrays was built for, |
| 11 | +.BR gfortran (1) |
| 12 | +by default, and that the linker links against the appropriate parallel runtime, MPI by default. The \fB\fCcaf\fR compiler wrapper serves a similar purpose to the MPI fortran wrapper compiler, |
| 13 | +.BR mpifort (1). |
| 14 | +\fB\fCcaf\fR embeds the full path to the Fortran compiler it was built for, and to the parallel runtime libraries it links against, and a relative path, based on the install location of \fB\fCcaf\fR itself, to the OpenCoarrays library. This ensures that the API and ABI of OpenCoarrays is always consistent with the Fortran compiler it was built for, and the parallel runtime it uses. To upgrade the parallel runtime, e.g., MPI, or the Fortran compiler, you will need to rebuild and install OpenCoarrays, which will regenerate and reinstall the \fB\fCcaf\fR wrapper script. |
| 15 | +.PP |
| 16 | +\fB\fCcaf\fR tries to be smart about how it calls the underlying compiler and linker. Any user specified libraries will be inserted before the OpenCoarrays library, \fIlibcaf_mpi\fP, and before the parallel runtime libraries. This ensures that the linker will be able to resolve any references to the OpenCoarrays library and the parallel runtime library made by user supplied libraries. In addition any options not recognized by \fB\fCcaf\fR itself, as outlined below in the OPTIONS section. To see the default command \fB\fCcaf\fR will invoke, run \fB\fCcaf \-\-show\fR\&. To see how \fB\fCcaf\fR would execute a specific command, i.e., perform a dry\-run, pass the full command you wish to run, with the additional \fB\fC\-\-show\fR option as the very first option or argument after \fB\fCcaf\fR\&. (e.g., \fB\fCcaf \-\-show \-c foo.f90 \-o foo.f90.o\fR or \fB\fCcaf \-\-show foo.f90.o bar.f90.o \-lblas \-o a.out\fR) |
| 17 | +.SH OPTIONS |
| 18 | +.TP |
| 19 | +\fB\fC\-\-help\fR, \fB\fC\-h\fR |
| 20 | +Print a brief help/usage message and return without performing any substantive action. |
| 21 | +.TP |
| 22 | +\fB\fC\-\-show\fR, \fB\fC\-s\fR |
| 23 | +Print the default invocation of the underlying compiler, including what flags are passed, etc. This also functions as a dry\-run for executing a specific command, showing the user how the compiler would be called with the additional files and arguments passed by the user. |
| 24 | +.TP |
| 25 | +\fB\fC\-\-version\fR, \fB\fC\-V\fR, \fB\fC\-v\fR |
| 26 | +Print OpenCoarrays version and copyright information and exit. |
| 27 | +.TP |
| 28 | +\fB\fC\-\-wrapping\fR, \fB\fC\-\-wraps\fR, \fB\fC\-w\fR |
| 29 | +Report the name and version of the Fortran compiler \fB\fCcaf\fR is wrapping and exit. |
| 30 | +.SH BUGS |
| 31 | +.PP |
| 32 | +For a list of bugs currently affecting OpenCoarrays, or to report a new one, please report any bugs to the OpenCoarrays project at \[la]https://github.com/sourceryinstitute/OpenCoarrays/issues\[ra] |
| 33 | +.SH AUTHOR |
| 34 | +.PP |
| 35 | +Izaak Beekman \[la][email protected]\[ra] |
| 36 | +.SH SEE ALSO |
| 37 | +.PP |
| 38 | +.BR cafrun (1), |
| 39 | +.BR gfortran (1), |
| 40 | +.BR mpifort (1), |
| 41 | +OpenCoarrays project page \[la]https://github.com/sourceryinstitute/OpenCoarrays#readme\[ra], OpenCoarrays website \[la]http://www.opencoarrays.org\[ra] |
0 commit comments