PULSAR
0.1
Parallel Unified Linear Algebra with Systolic Arrays
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
prt_config.c
Go to the documentation of this file.
1
11
#include "
prt_config.h
"
12
14
19
prt_config_t
*
prt_config_new
()
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 config object.
30
return
config;
31
}
32
34
39
void
prt_config_delete
(
prt_config_t
*config)
40
{
41
// Free the config object.
42
free(config);
43
}
prt_config_s
PRT configuration.
Definition:
prt_config.h:41
PRT_VDP_SCHEDULING_AGGRESSIVE
Definition:
prt_config.h:32
prt_config_delete
void prt_config_delete(prt_config_t *config)
config object destructor
Definition:
prt_config.c:39
prt_config.h
PRT configuration.
prt_assert
#define prt_assert(cond, msg)
Definition:
prt_assert.h:30
PRT_SVG_TRACING_OFF
Definition:
prt_config.h:35
prt_config_new
prt_config_t * prt_config_new()
config object constructor
Definition:
prt_config.c:19
prt_config_s::vdp_scheduling
int vdp_scheduling
Definition:
prt_config.h:42
pulsar
prt
prt_config.c
Generated on Fri Aug 23 2013 16:20:53 for PULSAR by
1.8.5