#include <spu_mfcio.h>
#include "DynProgr_SPE.h"
#include "DynProgr_SPE_functions.h"
#include <stdio.h>
#include "matrix.h"
Go to the source code of this file.
Defines | |
#define | max(a, b) (((a)>(b))?(a):(b)) |
#define | min(a, b) (((a)<(b))?(a):(b)) |
Functions | |
static int8_t mainMemory[TOTAL_MEMORY] | __attribute__ ((__aligned__(16))) |
void * | alloc (int size) |
int | handleCommand (ppu_addr_t program_data_ea) |
int | main (uint64_t spe_id, ppu_addr_t program_data_ea, ppu_addr_t env) |
int | memRemaining () |
void | reset () |
Variables | |
static int | allocated = 0 |
static int | datatype = -1 |
Definition in file DynProgr_SPE_main.c.
#define max | ( | a, | |||
b | ) | (((a)>(b))?(a):(b)) |
#define min | ( | a, | |||
b | ) | (((a)<(b))?(a):(b)) |
Definition at line 37 of file DynProgr_SPE_main.c.
Referenced by handleCommand(), TcreateProfile(), and TdynProgLocal().
static int8_t mainMemory [ TOTAL_MEMORY ] __attribute__ | ( | (__aligned__(16)) | ) | [static] |
void* alloc | ( | int | size | ) |
Definition at line 43 of file DynProgr_SPE_main.c.
References ALIGN16, and TOTAL_MEMORY.
Referenced by handleCommand().
int handleCommand | ( | ppu_addr_t | program_data_ea | ) |
Definition at line 57 of file DynProgr_SPE_main.c.
References __ALIGNED__, ALIGN16, alloc(), blockSize, blockStart, createProfile, dataSize, delS, dynProgLocal, fixedDel, incDel, loadOpt, ls1, ls2, MATRIX_DIM, max, MAX_TRANSFER, maxDbLen, maxS, memRemaining(), min, mn, mx, profile, rD, remote_profile, reset(), s1, s2, simi, SPE_CMD_ALIGN, SPE_CMD_CREATE_PROFILE, SPE_CMD_GET_PROFILE, SPE_CMD_INIT, SPE_CMD_PUT_PROFILE, and storeOpt.
Referenced by main().
int main | ( | uint64_t | spe_id, | |
ppu_addr_t | program_data_ea, | |||
ppu_addr_t | env | |||
) |
int memRemaining | ( | ) |
Definition at line 49 of file DynProgr_SPE_main.c.
References TOTAL_MEMORY.
Referenced by handleCommand().
void reset | ( | ) |
int allocated = 0 [static] |
Definition at line 41 of file DynProgr_SPE_main.c.
int datatype = -1 [static] |
Definition at line 42 of file DynProgr_SPE_main.c.