hpc_server: Server Listening

Description Usage Arguments Details Author(s) See Also

Description

This function is not intended to be called directly by the user. It is an internal-only function to prevent cluster problems while using the INCA algorithm in the LaplacesDemon.hpc function.

Usage

1
server_Listening(n=2, port=19009)

Arguments

n

This is the number of CPUs. For more information, see LaplacesDemon.hpc.

port

This is a port for server listening, and defaults to port 19009.

Details

For the INCA algorithm, a server has been built into the LaplacesDemon.hpc function. The server exchanges information between processes, and has been designed to be portable. The server_Listening function is run as a separate process via the system function, when INCA is selected in LaplacesDemon.hpc.

Socket connections and the serialize function are used as per the Snow package to update a single proposal covariance matrix given all parallel chains. The sockets are opened/closed in each process with a small random sleep time to avoid collisions during connections to the internal server of LaplacesDemon.hpc. Blocking sockets are used to synchronize processes.

Author(s)

Silvere Vialet-Chabrand [email protected]

See Also

LaplacesDemon and LaplacesDemon.hpc.


LaplacesDemon documentation built on July 1, 2018, 9:02 a.m.