PULSAR  2.0.0
Parallel Ultra-Light Systolic Array Runtime
 All Data Structures Files Functions Typedefs Enumerations 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.
26  config->vdp_scheduling = PRT_VDP_SCHEDULING_AGGRESSIVE;
27  config->vdp_scheduling = PRT_SVG_TRACING_OFF;
28 
29  // Return the configuration object.
30  return config;
31 }
32 
34 
40 {
41  // Free the configuration object.
42  free(config);
43 }