Mathematica > Systems Interfaces & Deployment > Mathematica System Setup > Parallel Computation Setup & Configuration > LaunchKernels >
Mathematica > Systems Interfaces & Deployment > Parallel Computing > Parallel Computation Setup & Configuration > LaunchKernels >
Mathematica > Core Language > Tuning & Debugging > Parallel Computing > Parallel Computation Setup & Configuration > LaunchKernels >

LaunchKernels

LaunchKernels
launches all currently configured parallel subkernels.
LaunchKernels[n]
launches n local subkernels on the current computer.
LaunchKernels[des]
launches a subkernel with the given description.
LaunchKernels
launches several subkernels with the given descriptions.
  • Additional configurations for kernels on remote machines can be made available with the Wolfram Lightweight Grid and the Cluster Integration Package.
Launch the default kernels:
Close all running kernels and start two new ones:
Launch the default kernels:
In[1]:=
Click for copyable input
Out[1]=
Close all running kernels and start two new ones:
In[2]:=
Click for copyable input
Out[2]=
Launch the default kernels as described in $ConfiguredKernels:
Launch two more local kernels, in addition to those already running:
Close all kernels:
Launch copies of the previously running kernels:
Measure the speedup of the same calculation with different numbers of kernels used:
Distributed definitions and shared variables apply to running kernels and new ones:
Packages read with ParallelNeeds also apply to running and new kernels:
Close all running kernels and launch new ones:
The new kernels inherit previously distributed definitions and shared variables:
The new kernels also inherit packages read previously:
If any kernels are already running, LaunchKernels does not launch the default kernels:
Close all running kernels, then launch the default set of kernels:
Kernels may be automatically launched when first needed:
Manually close the kernels:
Now, no kernels are launched automatically:
If no kernels are available, most parallel calculations are done sequentially:
No kernels are launched by default on a single-core computer:
Specify the number of desired kernels to launch them anyway:
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF