Q. The command 'fcm make' gives the error: mpif90: command not found? A. This is because the FCM configuration files assume the use of a 'compiler wrapper' which is typically provided by OpenMPI or MPICH installations. Make sure you have OpenMPI installed and you have the OpenMPI 'bin' directory included on your PATH environment variable. For linux use 'apt-get install libopenmpi-dev'. HPC machines may require you to use a 'module' command e.g 'module load openmpi'. Check your local help information.
Q. I get this error, what does it mean? "[FAIL] cpg1c.intfb.h: missing dependency (type=include)" A. FCM has found an include statement: "#include cpg1c.intfb.h" in the source code but can't find the source file cpg1c.F90. Make sure the file exists or FCM is configured to look at all the sources. Q. How do I change where FCM builds the library archive (.a) file before the link stage? A. FCM queries the TMPDIR environment variable. If set it uses that location, otherwise it defaults to /tmp. On HPC systems, /tmp may not be the best choice if it is in memory. Q. What does the $HERE variable in FCM configuration files mean? A. The $HERE variable is a special variable that FCM interprets as the directory in which the configuration file resides. Q. How do I change the compiler used by my MPI compiler wrappers? A. This varies depending on your MPI implementation . For and your local environment. As an example, for OpenMPI, set the environment variables: export OMPI_FC=pgf90 export OMPI_CC=pgcc to use the Portland compilers instead of the default GNU (gfortran) compilers. Check the 'man page' of the mpif90 command to see what other options are possible. Some implementations allow you to use an option -fc to set the underlying compilers. Lastly, some HPC centres provide the 'module' command for loading and unloading particular compiler suites. Consult your local documentation for more details. Q. I get an error about missing shared object file: error while loading shared libraries: libmkl_intel_lp64.so: cannot open shared object file: No such file or directory. A. This can arise with the Intel compiler. The MKL library is Intel's |