# otherwise take ours.
include(CheckSymbolExists)
SET(CMAKE_REQUIRED_LIBRARIES ${MPI_LIBRARIES})
- CHECK_SYMBOL_EXISTS(MPI_Publish_name ${MPI_C_INCLUDE_PATH}/mpi.h MPI2_IS_OK)
+ SET(CMAKE_REQUIRED_INCLUDES ${MPI_C_INCLUDE_PATH})
+ CHECK_SYMBOL_EXISTS(MPI_Publish_name mpi.h MPI2_IS_OK)
SET(MPI_DEFINITIONS "${MPI_CXX_COMPILE_FLAGS}")
IF(MPI2_IS_OK)
MESSAGE(STATUS "Your mpi implementation is compatible with mpi2 ... adding -DHAVE_MPI2")
setContainerName();
const CORBA::String_var ior = _orb->object_to_string(_container);
if(regist)
+ {
_myConnexionToRegistry = new RegistryConnexion(0, 0, ior,"theSession", _instanceName.c_str());
+ }
if(notif)
_notifSupplier = new NOTIFICATION_Supplier(instanceName, notif);
return ret;
}
// A mpi parallel container register on zero node in NS
- containerNameInNS = _NS->BuildContainerNameForNS(params, GetMPIZeroNode(hostname,machFile).c_str());
+ std::string mpiZeroNode = GetMPIZeroNode(resource_selected,machFile).c_str();
+ containerNameInNS = _NS->BuildContainerNameForNS(params, mpiZeroNode.c_str());
}
else
containerNameInNS = _NS->BuildContainerNameForNS(params, hostname.c_str());
std::string zeronode;
std::string command;
std::string tmpFile = BuildTemporaryFileName();
+ const ParserResourcesType resInfo(_resManager->GetResourceDefinition(machine));
+
+ if(resInfo.Protocol == sh)
+ {
+ return resInfo.HostName;
+ }
if( GetenvThreadSafe("LIBBATCH_NODEFILE") == NULL )
{
if (_isAppliSalomeDefined)
{
- const ParserResourcesType resInfo(_resManager->GetResourceDefinition(machine));
if (resInfo.Protocol == rsh)
command = "rsh ";