PULSAR  1.0.0
Parallel Ultra Light Systolic Array Runtime
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
prt_config.c
Go to the documentation of this file.
1 
11 #include "prt_config.h"
12 
14 
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 }
32 
34 
40 {
41  // Free the config object.
42  free(config);
43 }
PRT configuration.
Definition: prt_config.h:41
void prt_config_delete(prt_config_t *config)
config object destructor
Definition: prt_config.c:39
PRT configuration.
#define prt_assert(cond, msg)
Definition: prt_assert.h:30
prt_config_t * prt_config_new()
config object constructor
Definition: prt_config.c:19
int vdp_scheduling
Definition: prt_config.h:42