arrow_back_ios Back to List

Offload1203

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.

This virtual call or pointer call may fail due to a missing domain. The __offload block declared at % must have a domain attached to be able to offload functions, for example __offload [& myfunction] { ....

This warning is issued if a domain declaration is missing on an __offload block .

int (* ptr)();

void test()
{
	__offload  //missing domain
	{
		ptr(); // call that requires domain
	}
}

Avoid this warning by adding an appropriate domain (containing the function that is called through ptr) to the __offload block.