Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

hpc_server

Server Listening


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

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 silvere@vialet-chabrand.com

See Also


LaplacesDemon

Complete Environment for Bayesian Inference

v16.1.4
MIT + file LICENSE
Authors
Byron Hall [aut], Martina Hall [aut], Statisticat, LLC [aut], Eric Brown [ctb], Richard Hermanson [ctb], Emmanuel Charpentier [ctb], Daniel Heck [ctb], Stephane Laurent [ctb], Quentin F. Gronau [ctb], Henrik Singmann [cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.