Debian Codegraph @

rts/c/backends/c.h

raw
1 // Start of backends/c.h
2
3 struct futhark_context_config {
4 int in_use;
5 int debugging;
6 int profiling;
7 int logging;
8 char *cache_fname;
9 int num_tuning_params;
10 int64_t *tuning_params;
11 const char** tuning_param_names;
12 const char** tuning_param_vars;
13 const char** tuning_param_classes;
14 };
15
16 static void backend_context_config_setup(struct futhark_context_config* cfg) {
17 (void)cfg;
18 }
19
20 static void backend_context_config_teardown(struct futhark_context_config* cfg) {
21 (void)cfg;
22 }
23
24 int futhark_context_config_set_tuning_param(struct futhark_context_config* cfg, const char *param_name, size_t param_value) {
25 (void)cfg; (void)param_name; (void)param_value;
26 return 1;
27 }
28
29 struct futhark_context {
30 struct futhark_context_config* cfg;
31 int detail_memory;
32 int debugging;
33 int profiling;
34 int profiling_paused;
35 int logging;
36 lock_t lock;
37 char *error;
38 lock_t error_lock;
39 FILE *log;
40 struct constants *constants;
41 struct free_list free_list;
42 struct event_list event_list;
43 int64_t peak_mem_usage_default;
44 int64_t cur_mem_usage_default;
45 struct program* program;
46 bool program_initialised;
47 };
48
49 int backend_context_setup(struct futhark_context* ctx) {
50 (void)ctx;
51 return 0;
52 }
53
54 void backend_context_teardown(struct futhark_context* ctx) {
55 (void)ctx;
56 }
57
58 int futhark_context_sync(struct futhark_context* ctx) {
59 (void)ctx;
60 return 0;
61 }
62
63 // End of backends/c.h