EXTERN_VMEM#
Defined in src/device/vpu_runtime/include/cupva_device/device_core.h
-
EXTERN_VMEM(bank, type, name, ...)#
Declare extern VMEM buffer.
Variadic macro used to declare a extern buffer in VMEM, which enables the user to access the global buffer in other files. Must have a matching VMEM() or VMEM_NOEXPORT() definition in exactly one translation unit.
- Parameters:
bank – Should be A, B or C (refers to VMEM bank)
type – Type of buffer (or type of elements in the case of an array)
name – Name of buffer
... – Optional arguments, specified in the following order:
h gives array dim. Defaults to scalar type if not present.
w gives array dim. Defaults to 1D array if only h is present, 2D array otherwise.