Re: Question on multiple compiler environment




Matthias Möller schreef:

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

Most compilers, especially the ones under UNIX/Linux, have
options like -v, -V or --version to print the version number to the
screen/standard output. You will then have to analyse that output.

If they do not have such an option, many will print the version number
as part of their operating anyway.

Regards,

Arjen

.



Relevant Pages

  • Compiler positions available for week ending October 15
    ... Cray Inc. - Compiler Developer positions available ... future Cray supercomputer architectures. ... Optimizer position, or 2262 for the Code Generation position, or both). ...
    (comp.compilers)
  • Re: inline power function replacement
    ... Your problem is architectures & compiler specific. ... It seems like a good thing to do is to hint the branch predictor that ... a better improvement from Intel as it has longer pipelines (the longer ...
    (comp.lang.c)
  • Re: code optimization in embedded systems
    ... it is simply impossible for a compiler to produce code that bad. ... that target ... speedup for a non-trivial piece of code is impossible. ... It also depends on the architecture itself, some architectures are just no good targets for C compilers. ...
    (comp.arch.embedded)
  • Re: Code review request: small optimization to localtime.c
    ... Now, an optimizing compiler might put a and b into registers, ... Also, on some architectures, the caching structure may cause writes ... parts of memory, if you're unlucky. ...
    (freebsd-arch)
  • Re: inline power function replacement
    ... Your problem is architectures & compiler specific. ... It seems like a good thing to do is to hint the branch predictor that ... a better improvement from Intel as it has longer pipelines (the longer ...
    (comp.lang.c)