FUNCTION REFERENCE

gcp

Current parallel pool.

Current parallel pool.

Syntax

p = gcp

Syntax

p = gcp('nocreate')

Returns the open pool, starting one (NumWorkers 1) if there is none. With 'nocreate' it returns [] when no pool is open.

Example

p = gcp('nocreate');   % [] before any parpool

Differences from MATLAB: Runs serially in MatRust; the pool has one worker.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.