Question on multiple compiler environment



Dear newsgroup,

we are developing a finite element package for the simulation of compressible and incompressible flows. It is mainly written in Fortran 95 but some external libraries are coded in C and/or F77. The aim is to write a portable code which runs on many different architectures and compilers.

Right now, the detection of architectures works quite well. In addition, the user can specify some meta tags, e.g., use native BLAS, etc. Then our build system "knows" about the right compiler names, options and paths to the external libraries.

Unfortunately, for each compiler the (performance) switches vary from one version to another. Do you have some general idea how to determine the version number of the compiler in a general fashion? That is, I already know the compiler's name, e.g., g95, ifort, f95 (SUN) but need to determine its version.

Many thanks in advance,
Matthias Moeller


.



Relevant Pages