futhark-0.23.1: rts/c/backends/c.h
// Start of backends/c.h
struct futhark_context_config {
int in_use;
int debugging;
int profiling;
int logging;
const char *cache_fname;
int num_tuning_params;
int64_t *tuning_params;
const char** tuning_param_names;
const char** tuning_param_vars;
const char** tuning_param_classes;
};
static void backend_context_config_setup(struct futhark_context_config* cfg) {
(void)cfg;
}
static void backend_context_config_teardown(struct futhark_context_config* cfg) {
(void)cfg;
}
int futhark_context_config_set_tuning_param(struct futhark_context_config* cfg, const char *param_name, size_t param_value) {
(void)cfg; (void)param_name; (void)param_value;
return 1;
}
struct futhark_context {
struct futhark_context_config* cfg;
int detail_memory;
int debugging;
int profiling;
int profiling_paused;
int logging;
lock_t lock;
char *error;
lock_t error_lock;
FILE *log;
struct constants *constants;
struct free_list free_list;
int64_t peak_mem_usage_default;
int64_t cur_mem_usage_default;
struct program* program;
};
int backend_context_setup(struct futhark_context* ctx) {
(void)ctx;
return 0;
}
void backend_context_teardown(struct futhark_context* ctx) {
(void)ctx;
}
int futhark_context_sync(struct futhark_context* ctx) {
(void)ctx;
return 0;
}
// End of backends/c.h