Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Integrate MATLAB with Third-Party Schedulers

If you already have a cluster with a scheduler, follow these instructions to integrate MATLAB® with your scheduler using MATLAB Parallel Server™. If you do not have an existing scheduler in your cluster, see: Integrate MATLAB Job Scheduler for Network License Manager.

After you integrate MATLAB with a scheduler, you can access workers in your cluster from a desktop MATLAB client session with Parallel Computing Toolbox™.

The setup in these steps uses the network license manager.

Activate Your MATLAB Parallel Server License

To install MATLAB Parallel Server, you must activate your license. To activate your MATLAB Parallel Server license:

  1. Navigate to https://www.mathworks.com/licensecenter.

  2. Log into the Administrator’s MathWorks Account.

  3. Select your MATLAB Parallel Server license, and click the Install and Activate tab.

  4. At the rightmost side, under RELATED TASKS, select Activate to Retrieve License File.

  5. Fill in the requested information. This information must refer to the machine that hosts the license manager. In these instructions, it is the head node. For more information, see Install License Manager on the Head Node.

  6. After filling in the information, download or email the License File and copy the File Installation Key. These are used later in the process.

Note

Activation is not necessary for trials. Contact your sales representative to obtain the License File and the File Installation Key.

Get the Installation Files

To save time and eliminate the need for the installer-based download process for each computer in your cluster, download the installation files prior to installation. Doing so facilitates installation in a large number of machines. If you have access to an Administrator’s account for your license, you can use the installer to download files without installing them. If not, contact the administrator of your license to obtain a copy of the installation files. For more information, see Download Products Without Installation (Installation, Licensing, and Activation). When using the installer to download the files, choose the following options:

  • Select the appropriate operating system for the cluster nodes.

  • Select all products for download. MATLAB Parallel Server cannot run jobs requiring products that are not installed.

There are three server-side components of MATLAB Parallel Server:

  1. The license manager, which hosts the MATLAB Parallel Server license used by each worker. For more information, see Install License Manager on the Head Node.

  2. Your third-party job scheduler, which runs on the head node and manages jobs on your cluster. You integrate this scheduler with MATLAB Parallel Server. For more information, see Install License Manager on the Head Node and Configure Your Cluster.

  3. MATLAB Parallel Server, which runs on the compute nodes. For more information, see Install Software on Worker Nodes.

Install License Manager on the Head Node

The head node is the computer node that hosts your third-party job scheduler. For the installation, use the offline installer from the previous step. For more information on the offline installation procedure, see Install Products Offline (Installation, Licensing, and Activation).

  1. Start the MATLAB installer from the installation files acquired in Get the Installation Files.

  2. Select Use a File Installation Key, and continue through the prompts.

  3. In the product selection, select only the license manager.

  4. In the License File step, browse to your license.lic file (obtained from Activate Your MATLAB Parallel Server License).

  5. Start the license manager.

Install Software on Worker Nodes

This procedure is similar to Install License Manager on the Head Node. For more information on the offline installation procedure, see Install Products Offline (Installation, Licensing, and Activation).

  1. Start the MATLAB installer from the installation files acquired in Get the Installation Files.

  2. Select Use a File Installation Key and continue through the prompts.

  3. Select all products. However, do not install the license manager.

  4. Use the license.dat file from the head node. You can obtain this file from the matlabroot/etc folder, where matlabroot is the MATLAB installation folder.

For best performance, install locally on each node. However, you can also install in a network share location. To save time, you can perform a noninteractive installation (silent installation) on the worker nodes. For instructions, see Install Noninteractively (Silent Installation) (Installation, Licensing, and Activation).

This license does not allow you to run MATLAB from the worker nodes. If you want to test the installation, complete the following setup.

Install Software on Local Desktop

To use MATLAB Parallel Server, you must use a local desktop running MATLAB and Parallel Computing Toolbox. Install the MathWorks® products for which you are licensed, including Parallel Computing Toolbox, on the local desktops from which you want to submit jobs to the cluster. For help with this step, see Installation, Licensing, and Activation.

Configure Your Cluster

When the cluster and client installations are complete, you can proceed to configure the products for the job scheduler of your choice. Use this table to choose a suitable guide to complete your configuration.

Next stepMore information
If your scheduler is supported, use direct integration. Schedulers supported by direct integration include SLURM, PBS Pro, Torque, LSF, and HPC Server.

Use the generic scheduler interface if:

  • Interfacing MATLAB with third-party schedulers not already supported by direct integration. Schedulers supported by direct integration include SLURM, PBS Pro, Torque, LSF, and HPC Server.

  • Interfacing MATLAB and third-party schedulers that do not have a shared file system between the MATLAB client and the cluster nodes.

  • Using a MATLAB client machine that does not have the third-party scheduler’s utilities installed.

See Also