Parallel

  Copyright (C) 2016 Peter Rakyta, Ph.D.
  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.
  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
  You should have received a copy of the GNU General Public License
  along with this program.  If not, see http://www.gnu.org/licenses/.

Description

Returns an object for controlling the parallel pool for paralell computations.

Available

EQuUs v4.6 or later

Class references

Syntax

object = Parallel(Opt)

Parameters
Opt An instance of the structure Opt.

Attributes (protected)

  • poolobj

    The parallel.Pool object, see the documentation for more details.
  • try2open

    Number of attempts to open the parallel pool.
  • try2open_max

    Maximal number of attemts to open the parallel pool.
  • waitsec

    A period to wait between the attempts to open the parallel pool.

Attributes (protected)

  • NumWorkers

    Number of workers.

Methods (public)

Parallel::openPool

Description


Opens the parallel pool for parallel compuattion. The opened pool is stored in the attribute poolobj. If the parallel.Pool fails to open, another attempt is tried in waitsec seconds at least try2open_max times.

Syntax

object.openPool()




Parallel::closePool

Description


Close the parallel pool stored in the attribute poolobj.

Syntax

object.closePool( fhandle )