User`s guide
mapreducer
11-167
mapreducer
Define parallel execution environment for mapreduce
mapreducer is the execution configuration function for mapreduce. This function
specifies where mapreduce execution takes place. With Parallel Computing Toolbox, you
can expand the execution environment to include various compute clusters.
Syntax
mapreducer
mapreducer(0)
mapreducer(poolobj)
mapreducer(hcluster)
mapreducer(mr)
mr = mapreducer( ___ )
mr = mapreducer( ___ ,'ObjectVisibility','Off')
Description
mapreducer specifies the default global execution environment for mapreduce.
If you have Parallel Computing Toolbox installed, and your default cluster profile
specifies a local cluster, then mapreducer also opens a parallel pool so that mapreduce
can distribute mapper and reducer tasks to the pool workers.
You can set your parallel preferences so that a pool does not automatically open. In this
case, you must explicitly start a pool if you want to use parallel resources. See “Parallel
Preferences”.
mapreducer(0) specifies that mapreduce run in the MATLAB client session without
using any parallel resources.
mapreducer(poolobj) specifies a cluster for parallel execution of mapreduce.
poolobj is a parallel.Pool object. The default pool is the current pool that is returned or
opened by gcp.