Programming on the Host
Create a C callable function (C-binding) Func
/* Allocate thread, operation status buffer, buffers */
/* Start custom function (set OSB to 0 if not used) */
Func(Thread, SrcBuf, DstBuf, OSB);
/* Host can now do other work while MVP is processing */
/* Wait for all threads to finish */
imSyncHost(Thread, OSB, IM_COMPLETED);
- Operation status buffer (OSB)
- Status codes for error checking
- Synchronization