RemoteKernelOpen

RemoteKernelOpen[spec]
launches a kernel with the given specification.


launches kernels in parallel.

DetailsDetails

  • 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 , the remote kernel creates a link and Mathematica connects to it. With , 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 to establish a connection.
  • The following options can be given:
  • "LocalLinkMode""Connect"how to establish the link
    "Service"""names the service to launch
    "Timeout"30the timeout for the network connection, in seconds

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

In[1]:=
Click for copyable input

Open one kernel on a remote computer:

In[2]:=
Click for copyable input
Out[2]=

Evaluate an expression on the remote kernel:

In[3]:=
Click for copyable input
In[4]:=
Click for copyable input
Out[4]=

Close the kernel:

In[5]:=
Click for copyable input
Out[5]=

LaunchKernels bullet RemoteKernelClose bullet RemoteKernelCloseAll bullet RemoteServicesLinks

New to Mathematica? Find your learning path »
Have a question? Ask support »