I saw the topic regarding mixed Intel-PGI compilers at www.pgroup.com/userforum/viewtopic.php?t=6283
Solve crack problem of PGI VISUAL FORTRAN 13.9. . Intel Fortran Compiler. NAG Fortran Compiler. PGI Compilers On HPC-Systems there are often specialized compilers available by the system provider as for example the IBM or Cray compilers. All these compilers support the Fortran 95 standard. An overview on the Fortran 2003 status and the Fortran 2008 status by various compilers is.
My question is whether it’s possible to use Visual Studio 2017 Community Edition (for C++) and PGI Community Edition (for Fortran90) on Windows 64 using the command line to build with cmake (3.13.1) and nmake.
Source code is a mix of C++ (no OpenMP) and Fortran90 (with OpenMP), where the C++ code calls the Fortran90 code.
I’m working inside the command window “x64 Native Tools Command Prompt for VS 2017”, so perhaps it’s no surprise CMake can find the VS2017 C++ compiler with:
set (CMAKE_CXX_COMPILER “C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe”)
(Aside: CMake uses the forward slash even on Windows)…but CMake cannot identify the Fortran compiler (CMake output is “Fortran compiler identification is unknown”). Here is my setting in CMakeLists.txt:
set (CMAKE_Fortran_COMPILER “C:/Program Files/PGI/win64/18.10/bin/pgfortran.exe”)
The test compile CMake attempts with the Fortran compiler fails.
Pgi Visual Fortran
The same outcome/error occurs if I use the PGI 18.10 command window, that is, cl.exe is found/works and pgfortran is unknown/broken.
Pgi Fortran Compiler Cracked Version 1
Thanks for any guidance possible,
Andy