Changeset 623 for trunk/kernel/libk/remote_barrier.h
- Timestamp:
- Mar 6, 2019, 4:37:15 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/remote_barrier.h
r619 r623 42 42 * used by the kernel. ALMOS-MKH uses only the barrier virtual address as an identifier. 43 43 * For each user barrier, ALMOS-MKH creates a kernel structure, dynamically allocated 44 * by the "generic_barrier_create()" function, destroyed by the "remote_barrier_destroy()"45 * function, and used by the "generic_barrier_wait()"function.44 * by the generic_barrier_create() function, destroyed by the generic_barrier_destroy() 45 * function, and used by the generic_barrier_wait() function. 46 46 * 47 47 * Implementation note: … … 58 58 * (x_size * ysize) mesh, including cluster (0,0), with nthreads per cluster, and called 59 59 * DQT : Distributed Quad Tree. This DQT implementation supposes a regular architecture, 60 uint32_t arity = hal_remote_l32( XPTR( node_cxy , &node_ptr->arity )); 60 61 * and a strong contraint on the threads placement: exactly "nthreads" threads per 61 62 * cluster in the (x_size * y_size) mesh. … … 141 142 142 143 143 144 /***************************************************************************************** 145 * This debug function uses remote accesses to display the current state of a generic 146 * barrier identified by the <gen_barrier_xp> argument. 147 * It calls the relevant function (simple or DQT) to display relevant information. 148 * It can be called by a thread running in any cluster. 149 ***************************************************************************************** 150 * @ barrier_xp : extended pointer on generic barrier descriptor. 151 ****************************************************************************************/ 152 153 void generic_barrier_display( xptr_t gen_barrier_xp ); 144 154 145 155 … … 192 202 void simple_barrier_wait( xptr_t barrier_xp ); 193 203 204 /***************************************************************************************** 205 * This debug function uses remote accesses to display the current state of a simple 206 * barrier identified by the <barrier_xp> argument. 207 * It can be called by a thread running in any cluster. 208 ***************************************************************************************** 209 * @ barrier_xp : extended pointer on simple barrier descriptor. 210 ****************************************************************************************/ 211 void simple_barrier_display( xptr_t barrier_xp ); 194 212 195 213 … … 281 299 void dqt_barrier_wait( xptr_t barrier_xp ); 282 300 283 301 /***************************************************************************************** 302 * This debug function uses remote accesses to display the current state of all 303 * ditributed nodes in a DQT barrier identified by the <barrier_xp> argument. 304 * It can be called by a thread running in any cluster. 305 ***************************************************************************************** 306 * @ barrier_xp : extended pointer on DQT barrier descriptor. 307 ****************************************************************************************/ 308 void dqt_barrier_display( xptr_t barrier_xp ); 284 309 285 310 #endif /* _REMOTE_BARRIER_H_ */
Note: See TracChangeset
for help on using the changeset viewer.