def max_channels(obj):
return _ec.max_channels(_get_opc(obj))<EOL>
Return the global maximum number of channels for the parallel
region `obj` is executing in.

When the parallel region is not nested this is the same value
as ``local_max_channels(obj)``. 

If the parallel region is nested the value will be
``(width*N)`` where N is the number of times the
parallel region has been replicated due to nesting.

Args:
    obj: Instance of a class executing within Streams.
Returns:
    int: Parallel region global maximum number of channels or 0 if not located in a parallel region.