Destroys a barrier specified by the parameter barrier.
tnt_ret_t tnt_shmem_barrier_destroy( tnt_shmem_barrier_t * barrier )
Initializes a barrier specified by the parameter barrier.
tnt_ret_t tnt_shmem_barrier_init( tnt_shmem_barrier_t * barrier )
Waits at a barrier(obviously not the DCMF barrier) specified by the parameter barrier.
tnt_ret_t tnt_shmem_barrier_wait( tnt_shmem_barrier_t * barrier )
Destroys the global shared memory, all associated variables, and finalizes DCMF.
tnt_ret_t tnt_shmem_finalize()
Free a malloc’d block of memory.
void tnt_shmem_free( tnt_shmem_chunk_t * chunk )
Retrieve the linear rank of current node.
size_t tnt_shmem_get_rank()
Retrieve the number of processors running in the current job.
size_t tnt_shmem_get_size()
Initializes a global shared memory, as well as DCMF and all associated global variables.
tnt_ret_t tnt_shmem_init( size_t size )
Malloc a block of memory from the global shared memory in bytes specified by size.
tnt_shmem_chunk_t* tnt_shmem_malloc( size_t size )
Destroys the mutex specified by the parameter mutex.
tnt_ret_t tnt_shmem_mutex_destroy( tnt_shmem_mutex_t * mutex )
Initializes the mutex specified by the parameter mutex.
tnt_ret_t tnt_shmem_mutex_init( tnt_shmem_mutex_t * mutex )
Locks a mutex specified by the parameter mutex.
tnt_ret_t tnt_shmem_mutex_lock( tnt_shmem_mutex_t * mutex )
Unlocks a mutex specified by the parameter mutex.
tnt_ret_t tnt_shmem_mutex_unlock( tnt_shmem_mutex_t * mutex )
Read from a shared memory region.
tnt_ret_t tnt_shmem_read( tnt_shmem_chunk_t * src, void * buffer, size_t size )
Write to a shared memory region
tnt_ret_t tnt_shmem_write( tnt_shmem_chunk_t * dst, void * buffer, size_t size )