Changes between Version 8 and Version 9 of library_barrier


Ignore:
Timestamp:
Jan 4, 2015, 5:18:09 PM (10 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • library_barrier

    v8 v9  
    2323
    2424The ''giet_sbt_barrier_t'' can be used in multi-clusters architectures, and is implemented as a physically distributed Sliced-Binary-Tree (SBT).
    25 The SBT topology is completely defined by the number of tasks, with the following constraints:
    26  * The number of tasks must be a power of 2.
    27  * There is one task per processor.
     25The SBT topology is completely defined by the number of involved clusters, with the following constraints:
     26 * The number of involved clusters must be a power of 2.
    2827 * The involved clusters form a mesh[X][Y] where (X = Y) or (X = 2*Y).
    2928 * The lower left involved cluster is cluster(0,0).
    3029 * All involved clusters must contain a heap[x][y] vseg declared in the mapping.
     30 * The number of involved tasks in a given cluster is the same for all clusters
    3131
    3232The available functions are:
    33  * '''sbt_barrier_init( giet_sbt_barrier_t * barrier, unsigned int ntasks )'''
     33 * '''sbt_barrier_init( giet_sbt_barrier_t * barrier, unsigned int nclusters, unsigned int ntasks )'''
    3434 * '''sbt_barrier_wait( giet_sbt_barrier_t * barrier )'''
    3535
    36 The ''barrier'' argument is a pointer on a ''giet_barrier_t'' object. The ''ntasks'' argument is the number of expected tasks.
     36The '''barrier''' argument is a pointer on a ''giet_barrier_t'' object.
     37The '''nclusters''' argument is the number of involved clusters.
     38The '''ntasks''' argument is the number of expected tasks in a single cluster.
    3739
    3840The sbt_barrier_init() contains a system call, but the sbt_barrier_wait() does not.