#include "pputask.h" #include #include #include #include #include "spu/compute_task.h" extern spe_program_handle_t spu_main; compute_task_t task __attribute__ ((aligned (128))); int main(int argc, char** argv) { int n = 1; ppu_task_spe_num_set(n); ppu_task_debug_level_set(0); if (ppu_task_init(0, NULL, spu_main) < 0){ printf("Init failed\n"); return -1; } task.common.cmd = COMPUTE_TASK; task.common.size = sizeof(task); task.a = 1; task.b = 2; ppu_task_run((task_t*)&task); return 0; }