.. highlight:: c .. _pragma_memory_partition_variable: Partition Memory ------------------------------- **Syntax** ``#pragma LEGUP memory partition variable`() type(complete|none) dim()`` **Description** This pragma specifies a variable to be partitioned. 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 | +--------------+--------------------+----------+--------------+---------------------+ | ``type`` | ``complete|none`` | Yes | ``complete`` | Partition type | +--------------+--------------------+----------+--------------+---------------------+ | ``dim`` | Integer | Yes | 0 | Partition dimension | +--------------+--------------------+----------+--------------+---------------------+ **Position** Before the global / local variable declaration. **Examples** .. code-block:: c #pragma LEGUP memory partition variable(b) type(none) int b[100]; int fun(int *a) { ... #pragma LEGUP memory partition variable(c) dim(1) int c[100][100]; ... } --------------------------------------------------------------------------------