SPU-Thread Management
[Startup & Shutdown]

Collaboration diagram for SPU-Thread Management:

Detailed Description

This section deals about the creation and management of SPU-threads.

Note:
PPU only


Data Structures

struct  moc_spu_thread_struct
 SPU-Thread structure. More...

Typedefs

typedef struct
moc_spu_thread_struct 
moc_spu_thread_t
 SPU-Thread structure.

Functions

void * moc_spe_pthread_func (void *arg)
 PThread-function for creating SPU-Threads.

Variables

uint8_t moc_spu_thread_count
 actual number of SPU-Threads.
uint8_t moc_ppu_thread_count
 actual number of PPU-Threads.
uint32_t moc_spu_buffer_size
 init buffer size
uint8_t moc_spu_queue_size
 init message-queue size
moc_spu_thread_t moc_spu_thread_list [MOC_SPU_THREAD_MAX]
 array of SPU-Threads.
uint8_t moc_spu_thread_count = 0
 Holds the value of currently configured SPU-Threads.
uint8_t moc_ppu_thread_count = 0
 Holds the value of currently configured PPU-Threads.
moc_spu_thread_t moc_spu_thread_list [MOC_SPU_THREAD_MAX]
 Holds information about the SPU-Threads.
uint32_t moc_spu_buffer_size = MOC_BUFFER_SIZE
uint8_t moc_spu_queue_size = MOC_QUEUE_SIZE


Typedef Documentation

SPU-Thread structure.

Note:
PPU only
Stores information about the SPU-Threads the managing PPU-Process needs to know. typedef of moc_spu_thread_struct


Function Documentation

void * moc_spe_pthread_func ( void *  arg  ) 

PThread-function for creating SPU-Threads.

Definition at line 37 of file imoc_spe_thread_ppu.c.

References moc_spu_thread_struct::argp, moc_spu_thread_struct::envp, moc_spu_thread_struct::rank, moc_spu_thread_struct::spe_entry_adress, moc_spu_thread_struct::speid, and moc_spu_thread_struct::stop_info.

Referenced by MOC_Init().

Here is the caller graph for this function:


Variable Documentation

uint8_t moc_ppu_thread_count = 0

Holds the value of currently configured PPU-Threads.

Definition at line 24 of file imoc_spe_thread_ppu.c.

uint32_t moc_spu_buffer_size = MOC_BUFFER_SIZE

Definition at line 33 of file imoc_spe_thread_ppu.c.

init buffer size

Definition at line 111 of file imoc_core_ppu.h.

Referenced by MOC_Init(), and MOC_Set_buffer_size().

uint8_t moc_spu_queue_size = MOC_QUEUE_SIZE

Definition at line 35 of file imoc_spe_thread_ppu.c.

init message-queue size

Definition at line 116 of file imoc_core_ppu.h.

Referenced by MOC_Init(), and MOC_Set_queue_size().

uint8_t moc_spu_thread_count = 0

Holds the value of currently configured SPU-Threads.

Definition at line 19 of file imoc_spe_thread_ppu.c.

actual number of SPU-Threads.

Note:
PPU only

Definition at line 98 of file imoc_core_ppu.h.

Referenced by MOC_Add_spu_thread(), MOC_Finalize(), and MOC_Init().

Holds information about the SPU-Threads.

order of indices is equal to order of ranks.

Definition at line 31 of file imoc_spe_thread_ppu.c.


Generated on Thu Feb 12 13:51:06 2009 for MPI On Cell (Documentation) by  doxygen 1.5.6