PVA_DECLARE_EXECUTABLE#
Defined in cmake/include/pvasdk_platform.h
-
PVA_DECLARE_EXECUTABLE(_name_)#
Declare a VPU executable with the given name.
PVA_DECLARE_EXECUTABLE is used to declare a constant data blob representing a VPU .elf/.so which has been embedded by the build system. It should be used in global or namespace scope. After using this, PVA_EXECUTABLE_DATA and PVA_EXECUTABLE_SIZE can be used to get a pointer to the blob, which can then be passed to cupva::Executable::Create
It is expected that the data array should have been generated with pvasdkCreateBin.py. This is done automatically when building with the PVA SDK build system.
- Parameters:
_name_ – The unique name that will be used to reference this executable. It must match the name of the .elf/.so generated by the build system. See the Building section of the step-by-step tutorials for an example.