
Go to the source code of this file.
Data Structures | |
| struct | __wr_group |
| WRGroup is used to specify a collection of Work Requests. More... | |
| struct | __work_request |
| WorkRequest is used to keep track of and access outstanding work requests. More... | |
| struct | __spe_thread |
| An SPE Thread structures which is Used to maintain information about a particular SPE thread that is running on an SPE. More... | |
Typedefs | |
| typedef struct __wr_group | WRGroup |
| typedef WRGroup * | WRGroupHandle |
| WRGroupHandle structure that is used by Offload API calls. | |
| typedef struct __work_request | WorkRequest |
| typedef WorkRequest * | WRHandle |
| WRHandle structure that is used by Offload API calls. | |
| typedef struct __spe_thread | SPEThread |
Functions | |
| int | InitOffloadAPI (void(*cbFunc)(void *) DEFAULT_TO_NULL, void(*gcbFunc)(void *) DEFAULT_TO_NULL, void(*errorFunc)(int, void *, WRHandle) DEFAULT_TO_NULL, char *timingFileName DEFAULT_TO_NULL) |
| Initialization function. | |
| void | CloseOffloadAPI () |
| Close function. | |
| WRHandle | sendWorkRequest (int funcIndex, void *readWritePtr, int readWriteLen, void *readOnlyPtr, int readOnlyLen, void *writeOnlyPtr, int writeOnlyLen, void *userData DEFAULT_TO_NULL, unsigned int flags DEFAULT_TO_NONE, void(*callbackFunc)(void *) DEFAULT_TO_NULL, WRGroupHandle wrGroupHandle DEFAULT_TO_NULL, unsigned int speAffinityMask DEFAULT_TO_ALLSET) |
| Creates and sends a work request to one of the SPEs. | |
| WRHandle | sendWorkRequest_list (int funcIndex, unsigned int eah, DMAListEntry *dmaList, int numReadOnly, int numReadWrite, int numWriteOnly, void *userData DEFAULT_TO_NULL, unsigned int flags DEFAULT_TO_NONE, void(*callbackFunc)(void *) DEFAULT_TO_NULL, WRGroupHandle wrGroupHandle DEFAULT_TO_NULL, unsigned int speAffinityMask DEFAULT_TO_ALLSET) |
| Creates and sends a work request to one of the SPEs. | |
| int | isFinished (WRHandle wrHandle) |
| Used to check if the specified work request has finished executing (including out-bound data being DMAed back into main memory). | |
| void | waitForWRHandle (WRHandle wrHandle) |
| Used to wait for the specified WRHandle to finish. | |
| WRGroupHandle | createWRGroup (void *userData DEFAULT_TO_NULL, void(*callbackFunc)(void *) DEFAULT_TO_NULL) |
| Used to create a Work Request Group to which Work Requests may be added. | |
| void | completeWRGroup (WRGroupHandle wrGroupHandle) |
| Used to inidicate that all the Work Requests that will be added to the specified Work Request Group have been added. | |
| int | isWRGroupFinished (WRGroupHandle wrGroupHandle) |
| Used to check whether or not a Work Request Group has finished. | |
| void | waitForWRGroupHandle (WRGroupHandle wrGroupHandle) |
| Used to wait for a Work Reqeuest Group to finish. | |
| void | OffloadAPIProgress () |
| Used to allow the Offload API to make progress. | |
| void | OffloadAPIDisplayConfig (FILE *fout) |
| Use to display the configuration of the Offload API in the specified file. | |
| int | getWorkRequestID (WRHandle wrHandle) |
| void | enableTrace () |
| void | disableTrace () |
| void | displayLastWRTimes () |
Variables | |
| spe_program_handle_t | spert_main |
| The symbol name of the SPE executable that should be linked with the main code. | |
1.5.5