Hopefully this has a simple answer, but I have a software where the source code is distributed with the final exectuable. The final exectuable is made with Intel Fortran and I would like to start making use of the MKL subrouines, but the code has to be written in a manner that it can be compiled with other compilers.
I thought it would work to have some sort of preprossor definitions that would check if intel compiler and MKL is availible. Something like:
#if MKL availible call MKL_SUB(a) #else call SUB(a) #endif
#if MKL availible #def "call SUB(a)" "call MKL_SUB(a)" #endif call SUB(a) #undef "call SUB(a)"
Any thoughts or suggestions would be greatly appreciated. I am new to using preprossors. Are there any special compile flags and.or do I have to rename the files to .fpp