.. highlight:: c .. _pragma_memory_partition_variable: Partition Memory ------------------------------- **Syntax** ``#pragma LEGUP memory partition variable() dim()`` **Description** This pragma specifies a variable to be partitioned. This assumes complete partitioning. Dimension 0 corresponds to the right-most dimension of an array and higher dimensions correspond to leftward dimensions. **Parameters** +--------------+---------+----------+---------+---------------------+ | Parameter | Value | Optional | Default | Description | +==============+=========+==========+=========+=====================+ | ``variable`` | String | No | | Variable name | +--------------+---------+----------+---------+---------------------+ | ``dim`` | Integer | Yes | 0 | Partition dimension | +--------------+---------+----------+---------+---------------------+ **Position** Before the global / local variable declaration. **Examples** .. code-block:: c #pragma LEGUP memory partition variable(b) dim(0) int b[100]; int fun(int *a) { ... #pragma LEGUP memory partition variable(c) dim(0) int c[100]; ... } --------------------------------------------------------------------------------