[CMake] CMake and MPIF90

Pettey . Lucas LPettey at drc.com
Thu Apr 25 17:10:36 EDT 2013


Hello,

I am getting errors when I execute a simple "hello World" mpi program compiled using cmake.

I could not get the program to compile using various forms of FIND_PACKAGE(MPI REQUIRED), INCLUDE_DIRECTORIES(${MPI_INCLUDE_PATH}), TARGET_LINK_LIBRARIES(executable ${MPI_LIBRARIES}) and filling in flags manually for anything missing.

I then tried FC=mpif90 and the program compiled, but gave me upon execution a series of errors starting with:

[[INVALID],INVALID] ORTE_ERROR_LOG: Not found in file runtime/orte_init.c at line 121

The rest indicate that MPI is not being initialized properly.

As a sanity check, I compiled using mpif90 in the command line and everything worked fine.

Any ideas or links to documentation? I tried searching the wiki, but it is not very straightforward.

Thanks,
Lucas
________________________________
This electronic message transmission and any attachments that accompany it contain information from DRCĀ® (Dynamics Research Corporation) or its subsidiaries, or the intended recipient, which is privileged, proprietary, business confidential, or otherwise protected from disclosure and is the exclusive property of DRC and/or the intended recipient. The information in this email is solely intended for the use of the individual or entity that is the intended recipient. If you are not the intended recipient, any use, dissemination, distribution, retention, or copying of this communication, attachments, or substance is prohibited. If you have received this electronic transmission in error, please immediately reply to the author via email that you received the message by mistake and also promptly and permanently delete this message and all copies of this email and any attachments. We thank you for your assistance and apologize for any inconvenience.


More information about the CMake mailing list