00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00022 #ifndef _IOALOS_INCLUDE_PPU_TOOLS_H_
00023 #define _IOALOS_INCLUDE_PPU_TOOLS_H_
00024
00025 #include <libspe2.h>
00026 #include <stdint.h>
00027
00028 #ifdef __cplusplus
00029 extern "C" {
00030 #endif
00031
00035 typedef struct spe_handle spe_handle_t;
00036
00056 spe_handle_t* init_spes(spe_program_handle_t *program, uint8_t spe_threads,
00057 void *globals, uint16_t globals_size,
00058 void *locals, uint16_t locals_size);
00059
00069 void start_spes(spe_handle_t *handle);
00070
00079 void join_spes(spe_handle_t *handle);
00080
00091 void free_spes(spe_handle_t *handle);
00092
00093 #ifdef __cplusplus
00094 }
00095 #endif
00096
00097 #endif
00098