From 12d46be8c70205662d96fc26aee19fba06fd7ddf Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Thu, 9 Feb 2023 09:35:55 +1100 Subject: switch to multicore version --- pca.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pca.h') diff --git a/pca.h b/pca.h index 7d6cc72..93610d5 100644 --- a/pca.h +++ b/pca.h @@ -21,6 +21,7 @@ int futhark_context_config_set_tuning_param(struct futhark_context_config *cfg, struct futhark_context; struct futhark_context *futhark_context_new(struct futhark_context_config *cfg); void futhark_context_free(struct futhark_context *cfg); +void futhark_context_config_set_num_threads(struct futhark_context_config *cfg, int n); void futhark_context_config_set_debugging(struct futhark_context_config *cfg, int flag); void futhark_context_config_set_profiling(struct futhark_context_config *cfg, int flag); void futhark_context_config_set_logging(struct futhark_context_config *cfg, int flag); @@ -55,7 +56,7 @@ void futhark_context_set_logging_file(struct futhark_context *ctx, FILE *f); void futhark_context_pause_profiling(struct futhark_context *ctx); void futhark_context_unpause_profiling(struct futhark_context *ctx); int futhark_context_clear_caches(struct futhark_context *ctx); -#define FUTHARK_BACKEND_c +#define FUTHARK_BACKEND_multicore #define FUTHARK_SUCCESS 0 #define FUTHARK_PROGRAM_ERROR 2 #define FUTHARK_OUT_OF_MEMORY 3 -- cgit v1.2.3