#include <libspe2.h>
#include <pthread.h>
#include "ctrump/common/dll.h"
Go to the source code of this file.
Data Structures | |
struct | ctrump_runtime_spe_context |
spe_contextとPPEスレッドを保持する値 More... | |
Functions | |
CTRUMP_EXTDEF void | ctrump_runtime_initialize (int num_spe) |
初期化 | |
CTRUMP_EXTDEF void | ctrump_runtime_finalize (void) |
終了処理 | |
CTRUMP_EXTDEF void | ctrump_runtime_spe_start (spe_context_ptr_t spe, void *param) |
SPE開始. | |
CTRUMP_EXTDEF void | ctrump_runtime_spe_program_load (spe_context_ptr_t spe, const spe_program_handle_t *prog) |
SPEへプログラムロード. | |
CTRUMP_EXTDEF void | ctrump_runtime_spe_wait (spe_context_ptr_t spe) |
SPE完了待ち. | |
CTRUMP_EXTDEF void | ctrump_runtime_append_spe (spe_context_ptr_t spe, int enable_debugger) |
CTRUMPで使うSPEを追加する. | |
CTRUMP_EXTDEF void | ctrump_runtime_remove_spe (spe_context_ptr_t spe) |
CTRUMPで使っていたSPEを終了する. | |
Variables | |
CTRUMP_EXTDEF struct ctrump_runtime_spe_context | ctrump_runtime_spes [16] |
CTRUMP_EXTDEF int | ctrump_spe_num |
Definition in file ctrump-libspe2.h.
CTRUMP_EXTDEF void ctrump_runtime_append_spe | ( | spe_context_ptr_t | spe, | |
int | enable_debugger | |||
) |
CTRUMPで使うSPEを追加する.
spe | SPE | |
enable_debugger | ppu-gdbを使う場合は1 |
Definition at line 144 of file ctrump-libspe2.c.
References ctrump_runtime_spes, ctrump_spe_num, ctrump_runtime_spe_context::dir_fd, ctrump_runtime_spe_context::enable_debugger, ctrump_runtime_spe_context::spe_context, spe_thread(), and ctrump_runtime_spe_context::thread.
Referenced by ctrump_runtime_initialize().
CTRUMP_EXTDEF void ctrump_runtime_finalize | ( | void | ) |
終了処理
Definition at line 203 of file ctrump-libspe2.c.
References ctrump_runtime_remove_spe(), ctrump_runtime_spes, ctrump_spe_num, and ctrump_runtime_spe_context::spe_context.
CTRUMP_EXTDEF void ctrump_runtime_initialize | ( | int | num_spe | ) |
初期化
num_spe | 使うSPEの数 |
Definition at line 194 of file ctrump-libspe2.c.
References ctrump_runtime_append_spe().
CTRUMP_EXTDEF void ctrump_runtime_remove_spe | ( | spe_context_ptr_t | spe | ) |
CTRUMPで使っていたSPEを終了する.
spe | SPE |
Definition at line 167 of file ctrump-libspe2.c.
References ctrump_runtime_spes, ctrump_spe_num, ctrump_runtime_spe_context::dir_fd, ctrump_runtime_spe_context::spe_context, and ctrump_runtime_spe_context::thread.
Referenced by ctrump_runtime_finalize().
CTRUMP_EXTDEF void ctrump_runtime_spe_program_load | ( | spe_context_ptr_t | spe, | |
const spe_program_handle_t * | prog | |||
) |
SPEへプログラムロード.
spe | SPE | |
prog | プログラム |
Definition at line 92 of file ctrump-libspe2.c.
References __spe_context_update_event(), ctrump_runtime_spes, ctrump_spe_num, ctrump_runtime_spe_context::dir_fd, ctrump_runtime_spe_context::enable_debugger, and ctrump_runtime_spe_context::spe_context.
CTRUMP_EXTDEF void ctrump_runtime_spe_start | ( | spe_context_ptr_t | spe, | |
void * | param | |||
) |
SPE開始.
spe | spe context | |
param | SPEに渡すパラメータ |
Definition at line 127 of file ctrump-libspe2.c.
CTRUMP_EXTDEF void ctrump_runtime_spe_wait | ( | spe_context_ptr_t | spe | ) |
CTRUMP_EXTDEF struct ctrump_runtime_spe_context ctrump_runtime_spes[16] |
Definition at line 72 of file ctrump-libspe2.c.
Referenced by ctrump_runtime_append_spe(), ctrump_runtime_finalize(), ctrump_runtime_remove_spe(), and ctrump_runtime_spe_program_load().
CTRUMP_EXTDEF int ctrump_spe_num |
Definition at line 74 of file ctrump-libspe2.c.
Referenced by ctrump_runtime_append_spe(), ctrump_runtime_finalize(), ctrump_runtime_remove_spe(), and ctrump_runtime_spe_program_load().