AMS_Comm_publish

Publishes a computational context or Communicator. The first time the function is called it creates a Publisher (a unique Communicator) that would serve as a first point of contact between the client (Accessor), and the Publisher.

Synopsis

int AMS_Comm_publish(char *name, AMS_Comm *ams, AMS_Comm_type ctype, ...)

Input Parameters

name
the unique name of the computational context
ctype
Communicator Type (NODE_TYPE or MPI_TYPE)
host_list
list of hosts terminated by the NULL pointer (NODE_TYPE). You could use NULL to let the system decide on the default hostname
port_list
list of ports for each node to communicate on (NODE_TYPE). You could use NULL to let the system choose a port number for the Communicator.

Output Parameter

ams
the computational context

Note: This function is not thread-safe.

Location:amspub.c