Main Content

Send Polyspace Analysis from Desktop to Remote Servers

You can perform a Polyspace® analysis locally on your desktop or offload the analysis to one or more dedicated servers. You offload a Polyspace analysis from a Polyspace desktop product such as Polyspace Bug Finder™ but the analysis runs on the server using a Polyspace server product such as Polyspace Bug Finder Server™.

This topic shows how to send a Polyspace analysis from the user interface of the Polyspace desktop products.

Client-Server Workflow for Running Analysis

After the initial setup, you can submit a Polyspace analysis from a client desktop to a server. The client-server workflow happens in three steps. All three steps can be performed on the same computer or three different computers.

  1. Client node: You specify Polyspace analysis options and start the analysis on the client desktop. The initial phase of analysis up to compilation runs on the desktop. After compilation, the analysis job is submitted to the server.

    You require the Polyspace desktop product, Polyspace Bug Finder on the computer that acts as the client node.

  2. Head node: The server consists of a head node and several worker nodes. The head node uses a job scheduler to manage submissions from multiple client desktops. The jobs are then distributed to the worker nodes as they become available.

    You require the product MATLAB® Parallel Server™ on the computer that acts as the head node.

  3. Worker nodes: When a worker becomes available, the job scheduler assigns the analysis to the worker. The Polyspace analysis runs on the worker and the results are downloaded back to the client desktop for review.

    You require the product MATLAB Parallel Server on the computers that act as worker nodes. You also require the Polyspace server products, Polyspace Bug Finder Server and/or Polyspace Code Prover™ Server, to run the analysis.

Note

The versions of Polyspace on the client and worker nodes must match.

Flow diagram of a typical workflow for submitting analysis jobs from several desktops to a remote server.

Prerequisites

Before offloading an analysis from the user interface of the Polyspace desktop products, you must set up your project’s source files, analysis options, and remote analysis settings. If you have not done so, for more information on:

Once you have set up a Polyspace project and established communicated between a desktop and a remote server, you are ready to offload a Polyspace analysis.

Offload Analysis in Polyspace User Interface

To start a remote analysis:

  1. Select a project to analyze.

  2. On the Configuration pane, select Run Settings.

    Select Run Bug Finder analysis on a remote cluster and/or Run Code Prover analysis on a remote cluster.

    The Run Settings node on the Configuration pane contains options to run analyses on a remote cluster.

  3. Start the analysis. For instance, to start a Bug Finder analysis, click the Run Bug Finder button.

    The compilation part of the analysis takes place on the desktop product. After compilation, the analysis is offloaded to the server.

  4. To monitor the analysis, select Tools > Open Job Monitor. In the Polyspace Job Monitor, follow your queued job to monitor progress.

    Once the analysis is complete, the results are downloaded back to the user interface of the Polyspace desktop products. You can open the results directly in the user interface.

    If the analysis stops after compilation and you have to restart the analysis, to avoid restarting from the compilation phase, use the option -submit-job-from-previous-compilation-results.

See Also

Related Topics