Memory
The memory-section contains
information about all memory that is potentially `shared' between the
CPU and GPU. Based on this section, HyCuda will generate code that
allocates the memory on both devices. The syntax is as follows:
identifier [(io-specifiers)]: data-type, elements
Here, identifier is the name of the variable (pointer) that
points to the memory,
io-specifiers is an optional sequence
of input (i) and output (o) specifications,
data-type is the type of the variable (omitting the asterix
even though they will be pointers eventually), and elements
is the number of elements in the array. The latter can both be a
hardcoded numerical value, or a symbolic variable.
Subsections
Joren Heit
2013-12-17