Grid - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Toolboxes : Grid Computing : Grid/NumNodes

Grid

  

NumNodes

  

query total number of nodes participating in current computation

 

Calling Sequence

Description

Examples

Compatibility

Calling Sequence

NumNodes()

Description

• 

The NumNodes command is for use within the Maple code executed as part of a parallel computation.

• 

When a parallel job is started on a specified number of nodes, say N, each node will be given an integer identifier between 0 and N-1 for the duration of this computation. NumNodes() returns N, the total number of nodes participating in this parallel computation.

• 

This function is part of the Grid package, so it can be used in the short form NumNodes(..) only after executing the command with(Grid). However, it can always be accessed through the long form of the command by using Grid[NumNodes](..).

Examples

Grid:-LaunchGrid:-NumNodes();,numnodes=5

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   5

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   5

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   5

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   5

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   5

5

(1)

Grid:-LaunchGrid:-NumNodes();,numnodes=3

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   3

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   3

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   3

3

(2)

Compatibility

• 

The Grid[NumNodes] command was introduced in Maple 15.

• 

For more information on Maple 15 changes, see Updates in Maple 15.

See Also

Grid

Grid[MyNode]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam