Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29236 Discussions

how I can use fgsl by intel compiler

Daehyun_Y_
Beginner
1,614 Views

I’m OS X user. I installed fgsl by homebrew. I succeed to compile fgsl example file by gnu compiler. but, fail to do by intel compiler. 

error message: 

error #7013: This module file was not generated by any release of this compiler.   [FGSL]

  use fgsl

 

Is there anyone who knows it? 

 

0 Kudos
1 Solution
mecej4
Honored Contributor III
1,615 Views

Module files have formats specific to the compiler used. Therefore, the Intel compiler cannot use module files produced by Gfortran. You need to recompile the source file containing the module with the Intel compiler.

Along the same lines, there may be incompatibilities in the libraries produced by or intended for use with Gfortran.

View solution in original post

0 Kudos
4 Replies
mecej4
Honored Contributor III
1,616 Views

Module files have formats specific to the compiler used. Therefore, the Intel compiler cannot use module files produced by Gfortran. You need to recompile the source file containing the module with the Intel compiler.

Along the same lines, there may be incompatibilities in the libraries produced by or intended for use with Gfortran.

0 Kudos
Daehyun_Y_
Beginner
1,615 Views

thanks for replying back, mecej4. 
I gonna try to recompile with ifort. 
Is there intel version gsl, too? just like mkl and lapack . 
I want to use special function library for fortran.  

 

 

 

 

0 Kudos
mecej4
Honored Contributor III
1,615 Views

On a Windows system with no GSL installed, I was able to download and compile the fgsl.f90 and mod_unit.f90 using the Intel compiler. The module files were created with no problems. A similar thing may be possible on an OSX system. Do you already have a compiled GSL library available?

Which special functions do you need (e.g., incomplete gamma function) ? If you need just a few, it may be easier to obtain Fortran source code for those functions from Netlib than to build GSL using Intel C.

0 Kudos
Daehyun_Y_
Beginner
1,615 Views

Yes, I have gsl library that installed with homebrew. I've succeed to compile fgsl library with ifort by homebrew, before couple of hours. Now, I can use fgsl with ifort. But, everytime I use another compiler, I should reinstall whole fgsl library ;( 

I want to use Bessel functions, legendary functions, etc. I've tried to search another library, but I think gsl is the most useful one. 

 

0 Kudos
Reply