From: Rick K. <rk...@nc...> - 2005-11-30 15:05:14
|
Giuseppe, On Wed, 30 Nov 2005 gg...@un... wrote: > I arrived at the same conclusion when looking that it works with g77. Now I > would like to know if I can configure with both ifort and icc and if I have just > to add -F77=ifort -GCC=icc after all in the configure line. > In addition, may I have perfsuite configured for both GNU and Intel compilers? > Thanks, Giuseppe. This is a reasonable question and in fact something that we have to do here, in a multi-compiler environment. The thing to remember is that the important point is the Fortran-C calling convention, which is different for g77 and ifort. For C programs, it shouldn't matter. PerfSuite should always be built with gcc (not icc). What works for us is to build two separate versions of the libraries, one to be used with g77-compiled Fortran programs, the other for ifort-compiled Fortran programs. We request a separate subdirectory in the final install that is specific to the Intel version. The general "template" is something like this: 1% ./configure <options> 2% make 3% make install 4% ./configure <options> --libdir=/usr/local/lib/intel F77=ifort 5% make 6% make install Steps 1-3 build a g77-compatible version of PerfSuite and installs the libraries in /usr/local/lib. Steps 4-6 build an ifort-compatible version of PerfSuite and installs the libraries in /usr/local/lib/intel. When linking an application, you select the appropriate one and also set the LD_LIBRARY_PATH variable according to the Fortran compiler you are using. Commands like psrun should work regardless, what I am describing here is only needed for applications that use the PerfSuite API (like the matvec example). I hope this clears up a bit more of the confusion. Thanks for hanging in there! Rick |