1 | # $Id: f90compilers.dat $
|
---|
2 | #---------------------------------------------------------------------
|
---|
3 | # NAME
|
---|
4 | # f90_compilers.dat
|
---|
5 | #
|
---|
6 | # SYNOPSIS
|
---|
7 | # Defines known compilers & their flag options supporting this
|
---|
8 | # package for various platforms.
|
---|
9 | #
|
---|
10 | # USED BY
|
---|
11 | # f90_select (shell script)
|
---|
12 | #
|
---|
13 | # DESCRIPTION
|
---|
14 | # This file defines known Fortran-90 and C compilers and their command
|
---|
15 | # line switches. Add new ones or replace the 'default' entry.
|
---|
16 | # The ID in square brackets [OS-FID] represents
|
---|
17 | # - OS: the platform O/S, as returned by uname (but truncated to
|
---|
18 | # 6 characters and in uppercase)
|
---|
19 | # - FID: an arbitrary ID for the Fortran compiler, to be used as an
|
---|
20 | # argument to the -f switch in the master build script.
|
---|
21 | # The DEF compiler is a copy of your favourite compiler
|
---|
22 | # to be used as a default if no specific one is given to the
|
---|
23 | # build script for each OS.
|
---|
24 | # This compiler definitions file must have the following structure:
|
---|
25 | #
|
---|
26 | # [<OS>-<FID>]
|
---|
27 | # f90name=<compiler name>
|
---|
28 | # f90version=<version> (for info only, not used here)
|
---|
29 | # FF=<f90 command>
|
---|
30 | # FFLAGS=<f90 flags>
|
---|
31 | # VFFLAG=<f90 version ID flag> (to print Fortran compiler details)
|
---|
32 | # CC=<C command>
|
---|
33 | # CFLAGS=<C flags>
|
---|
34 | # VCFLAG=<C version ID flag> (to print C compiler details)
|
---|
35 | #
|
---|
36 | # Path variable to find include and module files in FFLAGS (argument
|
---|
37 | # to -I or equivalent) must given as "$INCDIR" or the paths will not
|
---|
38 | # be translated correctly.
|
---|
39 | #
|
---|
40 | # Compiler-specific notes
|
---|
41 | # GFortran:
|
---|
42 | # Note CC=gcc is set to use the default GNU C compiler with GFortran
|
---|
43 | # (e.g. 3.x.x). If a later version of GCC has been installed directly
|
---|
44 | # from the GFortran website (e.g. v4.x.x), you may wish to point CC=gcc
|
---|
45 | # to use the newer gcc (e.g. CC=gcc-4) that comes with the GFortran
|
---|
46 | # package, or set up a softlink for gcc to point to a non-default
|
---|
47 | # local version of gcc. E.g: edit CC=gcc-4 plus
|
---|
48 | # $ ln -s <path-to-gfortran>/bin/gcc $HOME/bin/gcc-4
|
---|
49 | #
|
---|
50 | # AUTHOR
|
---|
51 | # Dave Offiler
|
---|
52 | #
|
---|
53 | # CHANGE HISTORY
|
---|
54 | #
|
---|
55 | # Vers Date Description By
|
---|
56 | # -----------------------------------------------------------------------
|
---|
57 | # 1.0 20-Aug-2004 First Release D. Offiler
|
---|
58 | # 1.1 14-Dec-2004 Add Linux g95 D. Offiler
|
---|
59 | # 1.2 23-Mar-2005 Add Cygwin g95 and Linux+Cygwin GFortran (gfc)
|
---|
60 | # NB Under Cygwin, g95 works with gcc-3.3.x
|
---|
61 | # or gcc-3.4.x; gcc-4.1.0 does NOT work, even
|
---|
62 | # though recent releases of g95 are built on the
|
---|
63 | # gcc-4.1.0 back-end. So far, I haven't managed
|
---|
64 | # to get gfc to work with any version of
|
---|
65 | # gcc under Cygwin :-( D. Offiler
|
---|
66 | # 1.3 25-May-2005 Add Linux efc (NEC SX6/SX8 front-end) D. Offiler
|
---|
67 | # 1.4 12-Aug-2005 Rename Linux PG --> PGF90
|
---|
68 | # Rename Linux INTEL --> IFC (Intel v7)
|
---|
69 | # Rename Linux LF --> LF95
|
---|
70 | # Rename Cygwin INTEL --> IFORT (Intel v8)
|
---|
71 | # Add Linux PGF95
|
---|
72 | # Add Linux IFORT (Intel v8)
|
---|
73 | # Add -kind to FFLAGS for HP-UX NAG
|
---|
74 | # Add VFLAG keyword to all blocks. D. Offiler
|
---|
75 | # Modify details for Linux EFC for ia64:
|
---|
76 | # - add -i8 & -size_lp64 to FFLAGS
|
---|
77 | # - use ecc instead of gcc
|
---|
78 | # - add -size_lp64 to CFLAGS A. von Engeln
|
---|
79 | # - add -m D. Offiler
|
---|
80 | # Add +U77 & -lnsl to HP-UX HP D. Offiler
|
---|
81 | # 1.5 09-Sep-2005 Use gcc-4 with Linux/Cygwin gfc
|
---|
82 | # (latest releases of this combo work ok).
|
---|
83 | # Change 'VFLAG' keyword to 'VFFLAG' and
|
---|
84 | # add keyword 'VCFLAG' D. Offiler
|
---|
85 | # 1.6 22-Sep-2005 Add SunOS Fujitsu D. Offiler
|
---|
86 | # 1.7 13-Oct-2005 Add Linux ifort9 (Intel v9) D. Offiler
|
---|
87 | # 1.8 11-Apr-2006 Add HP-UX G95 D. Offiler
|
---|
88 | # 1.9 16-Oct-2006 Modify Linux details:
|
---|
89 | # - set DEF (default) to ifort (Intel v9)
|
---|
90 | # - change IFORT9 to IFORT (Intel v9)
|
---|
91 | # - change IFORT to IFORT8 (Intel v8)
|
---|
92 | # - change PGF90 to PGF (pgf90 now at v6.1)
|
---|
93 | # - PGF95 removed (was v6.0; use 'pgf')
|
---|
94 | # - updated G95 & GFortran version strings. D. Offiler
|
---|
95 | # 1.10 17-Jan-2007 Modify flag details for latest efc v5.4 on NEC
|
---|
96 | # 1.11 08-Feb-2008 Add to Linux:
|
---|
97 | # - IFORT9 (Intel v9 - alias for IFORT)
|
---|
98 | # - IFORT10 (Intel v10)
|
---|
99 | # - PGF6 (Portland Group v6 - alias for PGF)
|
---|
100 | # - PGF7 (Portland Group v7) D. Offiler
|
---|
101 | # 1.12 27-Jun-2008 Removed all entries in FFLAG to specify
|
---|
102 | # output path for module files so module
|
---|
103 | # files are created in PWD. We leave it to
|
---|
104 | # the build application (script or make file)
|
---|
105 | # to install to $INCDIR (or wherever). D. Offiler
|
---|
106 | # 1.13 27-Aug-2008 Changed assumed commands for Linux Portland
|
---|
107 | # compilers for better consistency:
|
---|
108 | # - PGF invokes 'pgf95' (was 'pgf90')
|
---|
109 | # - PGF6 invokes 'pgf6' (was 'pgf956')
|
---|
110 | # - PGF7 invokes 'pgf7' (was 'pgf957') D. Offiler
|
---|
111 | # 1.14 29-Jun-2009 Add NAGFOR for NAGWare 'nagfor' (v5.2) on Linux
|
---|
112 | # Add SUNF95 for SUN 'sunf95' (v8.3) on Linux
|
---|
113 | # Add IFORT11 for Intel 'ifort11' (v11) on Linux
|
---|
114 | # Modify LINUX-IFORT* details:
|
---|
115 | # - '-Vaxlib' deprecated after v8; removed from
|
---|
116 | # v9 & later entries (including LINUX-DEF)
|
---|
117 | # - added '-vec-report0' from v9 & later entries to
|
---|
118 | # suppress remarks about vector optimisations (not
|
---|
119 | # required for v11.1)
|
---|
120 | # Copy 'gfc' to 'gfortran' (Linux & Cygwin),
|
---|
121 | # removed '-static' flag and use default 'gcc'
|
---|
122 | # in place of non-standard 'gcc-4' D. Offiler
|
---|
123 | # 1.15 24-July-2009 Package no longe uses 'portability.fi' file which
|
---|
124 | # contained backslash characters supporting MS-DOS
|
---|
125 | # file path syntax, so F90 compiler switches '-nbs' and
|
---|
126 | # -Mbackslash' etc are redundant and have been removed.
|
---|
127 | # Removed 'GFC' blocks (use 'GFORTRAN)'.
|
---|
128 | # Make GFortran default under Cygwin. D. Offiler
|
---|
129 | #
|
---|
130 | #---------------------------------------------------------------------
|
---|
131 | #
|
---|
132 | # --- Linux ---
|
---|
133 |
|
---|
134 | [LINUX-DEF]
|
---|
135 | f90name=Intel f95 (v9)
|
---|
136 | f90version=v9.1
|
---|
137 | FF=ifort
|
---|
138 | FFLAGS=-DBPATH -O2 -cm -w -vec-report0 -I $INCDIR
|
---|
139 | VFFLAG=--version
|
---|
140 | CC=gcc
|
---|
141 | CFLAGS=-DUNDERSCORE
|
---|
142 | VCFLAG=--version
|
---|
143 |
|
---|
144 | [LINUX-IFORT]
|
---|
145 | f90name=Intel f95 (v9)
|
---|
146 | f90version=v9.1
|
---|
147 | FF=ifort
|
---|
148 | FFLAGS=-DBPATH -O2 -cm -w -vec-report0 -I $INCDIR
|
---|
149 | VFFLAG=--version
|
---|
150 | CC=gcc
|
---|
151 | CFLAGS=-DUNDERSCORE
|
---|
152 | VCFLAG=--version
|
---|
153 |
|
---|
154 | [LINUX-IFORT8]
|
---|
155 | f90name=Intel f95 (v8)
|
---|
156 | f90version=v8.1
|
---|
157 | FF=ifort8
|
---|
158 | FFLAGS=-DBPATH -O2 -cm -w -Vaxlib -I $INCDIR
|
---|
159 | VFFLAG=-V
|
---|
160 | CC=gcc
|
---|
161 | CFLAGS=-DUNDERSCORE
|
---|
162 | VCFLAG=--version
|
---|
163 |
|
---|
164 | [LINUX-IFORT9]
|
---|
165 | f90name=Intel f95 (v9)
|
---|
166 | f90version=v9.1
|
---|
167 | FF=ifort9
|
---|
168 | FFLAGS=-DBPATH -O2 -cm -w -vec-report0 -I $INCDIR
|
---|
169 | VFFLAG=--version
|
---|
170 | CC=gcc
|
---|
171 | CFLAGS=-DUNDERSCORE
|
---|
172 | VCFLAG=--version
|
---|
173 |
|
---|
174 | [LINUX-IFORT10]
|
---|
175 | f90name=Intel f95 (v10)
|
---|
176 | f90version=v10.0
|
---|
177 | FF=ifort10
|
---|
178 | FFLAGS=-DBPATH -O2 -cm -w -vec-report0 -I $INCDIR
|
---|
179 | VFFLAG=--version
|
---|
180 | CC=gcc
|
---|
181 | CFLAGS=-DUNDERSCORE
|
---|
182 | VCFLAG=--version
|
---|
183 |
|
---|
184 | [LINUX-IFORT11]
|
---|
185 | f90name=Intel f95 (v11)
|
---|
186 | f90version=v11.1
|
---|
187 | FF=ifort11
|
---|
188 | FFLAGS=-DBPATH -O2 -cm -w -I $INCDIR
|
---|
189 | VFFLAG=--version
|
---|
190 | CC=gcc
|
---|
191 | CFLAGS=-DUNDERSCORE
|
---|
192 | VCFLAG=--version
|
---|
193 |
|
---|
194 | [LINUX-NAG]
|
---|
195 | f90name=NAGWare f95 (Linux)
|
---|
196 | f90version=v5.1
|
---|
197 | FF=f95
|
---|
198 | FFLAGS=-DBPATH -O2 -w -I $INCDIR
|
---|
199 | VFFLAG=-V
|
---|
200 | CC=gcc
|
---|
201 | CFLAGS=-DUNDERSCORE
|
---|
202 | VCFLAG=--version
|
---|
203 |
|
---|
204 | [LINUX-NAGFOR]
|
---|
205 | f90name=NAGWare f95 (Linux)
|
---|
206 | f90version=v5.2
|
---|
207 | FF=nagfor
|
---|
208 | FFLAGS=-DBPATH -O2 -w -I $INCDIR
|
---|
209 | VFFLAG=-V
|
---|
210 | CC=gcc
|
---|
211 | CFLAGS=-DUNDERSCORE
|
---|
212 | VCFLAG=--version
|
---|
213 |
|
---|
214 | [LINUX-PGF]
|
---|
215 | f90name=Portland Group f95 (v6)
|
---|
216 | f90version=v6.2-3
|
---|
217 | FF=pgf95
|
---|
218 | FFLAGS=-DBPATH -O2 -I$INCDIR
|
---|
219 | VFFLAG=-V
|
---|
220 | CC=gcc
|
---|
221 | CFLAGS=-DUNDERSCORE
|
---|
222 | VCFLAG=--version
|
---|
223 |
|
---|
224 | [LINUX-PGF6]
|
---|
225 | f90name=Portland Group f95 (v6)
|
---|
226 | f90version=v6.2-3
|
---|
227 | FF=pgf6
|
---|
228 | FFLAGS=-DBPATH -O2 -I$INCDIR
|
---|
229 | VFFLAG=-V
|
---|
230 | CC=gcc
|
---|
231 | CFLAGS=-DUNDERSCORE
|
---|
232 | VCFLAG=--version
|
---|
233 |
|
---|
234 | [LINUX-PGF7]
|
---|
235 | f90name=Portland Group f95 (v7)
|
---|
236 | f90version=v7.0-2
|
---|
237 | FF=pgf7
|
---|
238 | FFLAGS=-DBPATH -O2 -I$INCDIR
|
---|
239 | VFFLAG=-V
|
---|
240 | CC=gcc
|
---|
241 | CFLAGS=-DUNDERSCORE
|
---|
242 | VCFLAG=--version
|
---|
243 |
|
---|
244 | [LINUX-LF95]
|
---|
245 | f90name=Lahay-Fujitsu f95
|
---|
246 | f90version=v6.20
|
---|
247 | FF=lf95
|
---|
248 | FFLAGS=-DBPATH -O0 -I$INCDIR
|
---|
249 | VFFLAG=--version
|
---|
250 | CC=gcc
|
---|
251 | CFLAGS=-DUNDERSCORE
|
---|
252 | VCFLAG=--version
|
---|
253 |
|
---|
254 | [LINUX-SUNF95]
|
---|
255 | f90name=SUN f95
|
---|
256 | f90version=v8.3
|
---|
257 | FF=sunf95
|
---|
258 | FFLAGS=-DBPATH -O2 -I$INCDIR -M$INCDIR
|
---|
259 | VFFLAG=-V
|
---|
260 | CC=suncc
|
---|
261 | CFLAGS=-DUNDERSCORE
|
---|
262 | VCFLAG=-V
|
---|
263 |
|
---|
264 | [LINUX-IFC]
|
---|
265 | f90name=Intel f95
|
---|
266 | f90version=v7.1
|
---|
267 | FF=ifc
|
---|
268 | FFLAGS=-DBPATH -O2 -cm -w -Vaxlib -I $INCDIR
|
---|
269 | VFFLAG=-V
|
---|
270 | CC=gcc
|
---|
271 | CFLAGS=-DUNDERSCORE
|
---|
272 | VCFLAG=--version
|
---|
273 |
|
---|
274 | [LINUX-G95]
|
---|
275 | f90name=GNU G95
|
---|
276 | f90version=v0.92 (GCC 4.0.3)
|
---|
277 | FF=g95
|
---|
278 | FFLAGS=-DBPATH -O2 -I $INCDIR
|
---|
279 | VFFLAG=--version
|
---|
280 | CC=gcc
|
---|
281 | CFLAGS=-DDUNDERSCORE
|
---|
282 | VCFLAG=--version
|
---|
283 |
|
---|
284 | [LINUX-GFORTRAN]
|
---|
285 | f90name=GNU GFortran
|
---|
286 | f90version=v4.4.0
|
---|
287 | FF=gfortran
|
---|
288 | FFLAGS=-DBPATH -O2 -I $INCDIR
|
---|
289 | VFFLAG=--version
|
---|
290 | CC=gcc
|
---|
291 | CFLAGS=-DUNDERSCORE -w
|
---|
292 | VCFLAG=--version
|
---|
293 |
|
---|
294 | [LINUX-EFC]
|
---|
295 | f90name=NEC Fortran for Itanium
|
---|
296 | f90version=v5.4
|
---|
297 | FF=efc
|
---|
298 | FFLAGS=-DBPATH -O2 -integer_size 64 -cm -w -nowarn -Vaxlib -I $INCDIR
|
---|
299 | VFFLAG=-V
|
---|
300 | CC=ecc
|
---|
301 | CFLAGS=-DUNDERSCORE -DL64
|
---|
302 | VCFLAG=-V
|
---|
303 |
|
---|
304 | # --- AIX ---
|
---|
305 |
|
---|
306 | [AIX-DEF]
|
---|
307 | f90name=AIX Fortran for IBM p6
|
---|
308 | f90version=v12.1
|
---|
309 | FF=xlf
|
---|
310 | FFLAGS=-WF,-DBPATH -O2 -q64 -qextname -I $INCDIR
|
---|
311 | VFFLAG=-V
|
---|
312 | CC=xlc
|
---|
313 | CFLAGS=-O2 -q64 -Dextname -DUNDERSCORE
|
---|
314 | VCFLAG=-V
|
---|
315 |
|
---|
316 | # --- Cygwin ---
|
---|
317 |
|
---|
318 | [CYGWIN-DEF]
|
---|
319 | f90name=GNU GFortran
|
---|
320 | f90version=v4.3.2
|
---|
321 | FF=gfortran
|
---|
322 | FFLAGS=-DBPATH -O2 -I $INCDIR
|
---|
323 | VFFLAG=--version
|
---|
324 | CC=gcc
|
---|
325 | CFLAGS=-DUNDERSCORE -w
|
---|
326 | VCFLAG=--version
|
---|
327 |
|
---|
328 | [CYGWIN-IFORT]
|
---|
329 | f90name=Intel Visual Fortran
|
---|
330 | f90version=v8.1
|
---|
331 | FF=ifort
|
---|
332 | FFLAGS=/nologo /DBPATH /optimize:2 /nowarn /Qlowercase /fpp /I $INCDIR
|
---|
333 | VFFLAG=/logo
|
---|
334 | CC=cl
|
---|
335 | CFLAGS=/nologo
|
---|
336 | VCFLAG=
|
---|
337 |
|
---|
338 | [CYGWIN-G95]
|
---|
339 | f90name=GNU G95
|
---|
340 | f90version=v0.92 (GCC 4.0.3)
|
---|
341 | FF=g95
|
---|
342 | FFLAGS=-DBPATH -O2 -I $INCDIR
|
---|
343 | VFFLAG=--version
|
---|
344 | CC=gcc
|
---|
345 | CFLAGS=-DDUNDERSCORE
|
---|
346 | VCFLAG=--version
|
---|
347 |
|
---|
348 | [CYGWIN-GFORTRAN]
|
---|
349 | f90name=GNU GFortran
|
---|
350 | f90version=v4.3.2
|
---|
351 | FF=gfortran
|
---|
352 | FFLAGS=-DBPATH -O2 -I $INCDIR
|
---|
353 | VFFLAG=--version
|
---|
354 | CC=gcc
|
---|
355 | CFLAGS=-DUNDERSCORE -w
|
---|
356 | VCFLAG=--version
|
---|
357 |
|
---|
358 | # --- HP-UX ---
|
---|
359 |
|
---|
360 | [HP-UX-DEF]
|
---|
361 | f90name=HP f90/95
|
---|
362 | f90version=v2.4.10
|
---|
363 | FF=/opt/fortran90/bin/f90
|
---|
364 | FFLAGS=-DBPATH -O2 +U77 -I $INCDIR -lnsl
|
---|
365 | VFFLAG=+version
|
---|
366 | CC=cc
|
---|
367 | CFLAGS=
|
---|
368 | VCFLAG=-V
|
---|
369 |
|
---|
370 | [HP-UX-HP]
|
---|
371 | f90name=HP f90/95
|
---|
372 | f90version=v2.4.10
|
---|
373 | FF=/opt/fortran90/bin/f90
|
---|
374 | FFLAGS=-DBPATH -O2 +U77 -I $INCDIR -lnsl
|
---|
375 | VFFLAG=+version
|
---|
376 | CC=cc
|
---|
377 | CFLAGS=
|
---|
378 | VCFLAG=-V
|
---|
379 |
|
---|
380 | [HP-UX-NAG]
|
---|
381 | f90name=NAGWare f95 (HP-UX)
|
---|
382 | f90version=v4.2
|
---|
383 | FF=f95
|
---|
384 | FFLAGS=-DBPATH -O2 -w -kind=byte -I $INCDIR -lnsl
|
---|
385 | VFFLAG=-version
|
---|
386 | CC=cc
|
---|
387 | CFLAGS=-DUNDERSCORE
|
---|
388 | VCFLAG=-V
|
---|
389 |
|
---|
390 | [HP-UX-G95]
|
---|
391 | f90name=Gnu G95
|
---|
392 | f90version=v4.0.1
|
---|
393 | FF=hpg95
|
---|
394 | FFLAGS=-DBPATH -O2 -I $INCDIR
|
---|
395 | VFFLAG=--version
|
---|
396 | CC=gcc
|
---|
397 | CFLAGS=-DDUNDERSCORE
|
---|
398 | VCFLAG=--version
|
---|
399 |
|
---|
400 | # --- Sun-OS ---
|
---|
401 |
|
---|
402 | [SUNOS-DEF]
|
---|
403 | f90name=Fujitsu Fortran
|
---|
404 | f90version=4.0.1.1
|
---|
405 | FF=f95
|
---|
406 | FFLAGS=-DBPATH -O2 -AEm -fs -I$INCDIR
|
---|
407 | VFFLAG=-V
|
---|
408 | CC=gcc
|
---|
409 | CFLAGS=-DUNDERSCORE
|
---|
410 | VCFLAG=--version
|
---|
411 |
|
---|
412 | [SUNOS-FUJITSU]
|
---|
413 | f90name=Fujitsu Fortran
|
---|
414 | f90version=4.0.1.1
|
---|
415 | FF=f95
|
---|
416 | FFLAGS=-DBPATH -O2 -AEm -fs -I$INCDIR
|
---|
417 | VFFLAG=-V
|
---|
418 | CC=gcc
|
---|
419 | CFLAGS=-DUNDERSCORE
|
---|
420 | VCFLAG=--version
|
---|