Skip to content
Snippets Groups Projects
Commit c7ec176d authored by phung4's avatar phung4
Browse files

moved pa_node structs to partition_allocator.h

parent dea89cd6
No related branches found
No related tags found
No related merge requests found
......@@ -211,35 +211,6 @@ typedef struct partition
} partition_t;
struct pa_request;
typedef struct pa_request {
int* geometry;
int size;
int conn_type;
bool rotate;
bool elongate;
bool force_contig;
} pa_request_t;
/**
* pa_node: node within the allocation system. Note that this node is
* hard coded for 1d-3d only! (just have the higher order dims as
* null if you want lower dimensions).
*/
typedef struct pa_node {
/* set if using this node in a partition*/
bool used;
/* coordinates */
int coord[PA_SYSTEM_DIMENSIONS];
/* shallow copy of the conf_results. initialized and used as
* array of Lists accessed by dimension, ie conf_result_list[dim]
*/
List* conf_result_list;
} pa_node_t;
/** creator/destructor fxns */
/** */
......
......@@ -42,6 +42,35 @@
extern bool _initialized;
struct pa_request;
typedef struct pa_request {
int* geometry;
int size;
int conn_type;
bool rotate;
bool elongate;
bool force_contig;
} pa_request_t;
/**
* pa_node: node within the allocation system. Note that this node is
* hard coded for 1d-3d only! (just have the higher order dims as
* null if you want lower dimensions).
*/
typedef struct pa_node {
/* set if using this node in a partition*/
bool used;
/* coordinates */
int coord[PA_SYSTEM_DIMENSIONS];
/* shallow copy of the conf_results. initialized and used as
* array of Lists accessed by dimension, ie conf_result_list[dim]
*/
List* conf_result_list;
} pa_node_t;
/**
* create a partition request. Note that if the geometry is given,
* then size is ignored. If elongate is true, the algorithm will try
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment