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

linking to GFortran object file

Bruce_Weaver
Beginner
904 Views

Hi,

I have a program that is very sensitive to the random number generator.  I've been using VS Mersenne Twister but am starting to have issues with it on multiple-week  multiple-thread use.  I'd like to try a xoshiro routine which is not available in VS but is available in GFortran.  Can I compile the GFortran & call it somehow from IFORT?

thanks

0 Kudos
4 Replies
mecej4
Honored Contributor III
888 Views

It would be more convenient to use the C source codes provided at https://prng.di.unimi.it/ , if one of those meets your needs. The VS C compiler or the Intel C compiler can be used.

The availability of jump functions may also be a factor in the choice.

0 Kudos
Ron_Green
Moderator
828 Views

No, the Application Binary Interface (ABI) is different betwen gfortran and Intel. You cannot mix binaries between the 2 compilers.

0 Kudos
Steve_Lionel
Honored Contributor III
824 Views

This is generally true for any two Fortran compilers.

0 Kudos
Bruce_Weaver
Beginner
776 Views

Thanks everyone.  I haven't been able to find a Fortran version of the generator, which would be easiest for me (after having it being in VS).

0 Kudos
Reply