RemoteKernelOpen[spec]
launches a kernel with the given specification.
RemoteKernelOpen[{spec1,spec2,…}]
launches kernels in parallel.
Details and Options
Examples
Basic Examples
Scope
Options
"LocalLinkMode"
"Service"
"Timeout"
See Also
Tech Notes
Related Guides
LightweightGridClient`
LightweightGridClient`
RemoteKernelOpen
RemoteKernelOpen[spec]
launches a kernel with the given specification.
RemoteKernelOpen[{spec1,spec2,…}]
launches kernels in parallel.
Details and Options
- RemoteKernelOpen is used by LaunchKernels to start a parallel kernel with the Lightweight Grid protocol.
- The argument to RemoteKernelOpen can be a hostname, a Lightweight Grid Manager URL, a RemoteServicesAgent expression, or a RemoteService expression.
- Use RemoteKernelClose or RemoteKernelCloseAll to close the kernel.
- With the default setting "LocalLinkMode"->"Connect", the remote kernel creates a link and Mathematica connects to it. With "LocalLinkMode"->"Create", Mathematica creates a link and the remote kernel connects to it. Some network configurations do not allow Mathematica to connect to links created on the remote computer, requiring "LocalLinkMode" -> "Create" to establish a connection.
- The following options can be given:
-
"LocalLinkMode" "Connect" how to establish the link "Service" "" names the service to launch "Timeout" 30 the timeout for the network connection, in seconds
Examples
open all close allBasic Examples (1)
Needs["LightweightGridClient`"]Open one kernel on a remote computer:
link = RemoteKernelOpen["cluster1.example.com"]Evaluate an expression on the remote kernel:
LinkWriteHeld[link, Hold[FactorInteger[2 ^ 32 - 1]]]LinkRead[link]RemoteKernelClose[link]Scope (1)
Options (3)
"LocalLinkMode" (1)
Let the remote kernel create a MathLink link and connect to it in this Mathematica session:
RemoteKernelOpen["cluster1.example.com", "LocalLinkMode" -> "Connect"]Create the MathLink link in this Mathematica session running on clusterhead.example.com and have the remote kernel connect to it:
RemoteKernelOpen["cluster1.example.com", "LocalLinkMode" -> "Create"]"Service" (1)
Open a kernel using the "ProjectGamma" service on octet.example.com:
RemoteKernelOpen["octet.example.com", "Service" -> "ProjectGamma"]