arrow_back_ios Back to List


Offload KB - offload-library

Old Content Alert

Please note that this is a old document archive and the will most likely be out-dated or superseded by various other products and is purely here for historical purposes.

Include: <liboffload>

int offloadSetAllocator(
	void* (*cpfncMemalign)	( unsigned int alignment, unsigned int size),
	void  (*cpfncFree)		( void* ptr )

This function sets the runtime to use the provided memory management functions. cpfncMemalign points to a memalign implementation, with the first argument the alignment in bytes, second argument being size required.

The Offload runtime will use standard platform implementations of these functions unless instructed to use otherwise via this function.