PULSAR  1.0.0
Parallel Ultra Light Systolic Array Runtime
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
prt_config.h File Reference

PRT configuration. More...

#include "prt.h"
Include dependency graph for prt_config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  prt_config_s
 PRT configuration. More...
 

Typedefs

typedef enum prt_config_param_e prt_config_param_t
 PRT configuration parameters. More...
 
typedef enum prt_config_value_e prt_config_value_t
 values of PRT configuration parameters More...
 
typedef struct prt_config_s prt_config_t
 PRT configuration. More...
 

Enumerations

enum  prt_config_param_e { PRT_VDP_SCHEDULING, PRT_SVG_TRACING }
 PRT configuration parameters. More...
 
enum  prt_config_value_e { PRT_VDP_SCHEDULING_AGGRESSIVE, PRT_VDP_SCHEDULING_LAZY, PRT_SVG_TRACING_ON, PRT_SVG_TRACING_OFF }
 values of PRT configuration parameters More...
 

Functions

prt_config_tprt_config_new ()
 config object constructor More...
 
void prt_config_delete (prt_config_t *config)
 config object destructor More...
 

Detailed Description

PRT configuration.

Author
Jakub Kurzak

PULSAR Runtime http://icl.eecs.utk.edu/pulsar/ Copyright (C) 2012-2013 University of Tennessee.

Definition in file prt_config.h.

Typedef Documentation

PRT configuration parameters.

typedef struct prt_config_s prt_config_t

PRT configuration.

values of PRT configuration parameters

Enumeration Type Documentation

PRT configuration parameters.

Enumerator
PRT_VDP_SCHEDULING 
PRT_SVG_TRACING 

Definition at line 23 of file prt_config.h.

23  {
enum prt_config_param_e prt_config_param_t
PRT configuration parameters.

values of PRT configuration parameters

Enumerator
PRT_VDP_SCHEDULING_AGGRESSIVE 
PRT_VDP_SCHEDULING_LAZY 
PRT_SVG_TRACING_ON 
PRT_SVG_TRACING_OFF 

Definition at line 31 of file prt_config.h.

31  {
32  PRT_VDP_SCHEDULING_AGGRESSIVE, // Run each VDP as long as possible.
33  PRT_VDP_SCHEDULING_LAZY, // Fire each VDP once and move on.
34  PRT_SVG_TRACING_ON, // produce an SVG trace file
35  PRT_SVG_TRACING_OFF // skip the SVG trace file
enum prt_config_value_e prt_config_value_t
values of PRT configuration parameters

Function Documentation

void prt_config_delete ( prt_config_t config)

config object destructor

Parameters
vdp

Definition at line 39 of file prt_config.c.

40 {
41  // Free the config object.
42  free(config);
43 }

Here is the caller graph for this function:

prt_config_t* prt_config_new ( )

config object constructor

Returns
new config object with default values

Definition at line 19 of file prt_config.c.

References prt_assert, PRT_SVG_TRACING_OFF, PRT_VDP_SCHEDULING_AGGRESSIVE, and prt_config_s::vdp_scheduling.

20 {
21  // Allocate the config object.
22  prt_config_t *config = (prt_config_t*)malloc(sizeof(prt_config_t));
23  prt_assert(config != NULL, "malloc failed");
24 
25  // Set the defaults.
28 
29  // Return the config object.
30  return config;
31 }
PRT configuration.
Definition: prt_config.h:41
#define prt_assert(cond, msg)
Definition: prt_assert.h:30
int vdp_scheduling
Definition: prt_config.h:42

Here is the caller graph for this function: