From e916d32b02df376aff2c9a9c7fe83f121507c92e Mon Sep 17 00:00:00 2001 From: Haavard Rue Date: Fri, 6 Dec 2024 13:27:10 +0300 Subject: [PATCH] Adding missing pragma --- gmrflib/approx-inference.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gmrflib/approx-inference.c b/gmrflib/approx-inference.c index e6b77ad55..0c3a5a9c1 100644 --- a/gmrflib/approx-inference.c +++ b/gmrflib/approx-inference.c @@ -6954,7 +6954,7 @@ double GMRFLib_prior_mean_func_eval(int thread_id, GMRFLib_prior_mean_tp *prior_ int GMRFLib_prior_mean_get(int thread_id, double *pmean, int n, GMRFLib_prior_mean_tp **prior_mean) { if (prior_mean) { -#pragma parallel for num_threads(GMRFLib_OPENMP_NUM_THREADS_LEVEL()) +#pragma omp parallel for num_threads(GMRFLib_OPENMP_NUM_THREADS_LEVEL()) for (int i = 0; i < n; i++) { pmean[i] = (prior_mean[i] ? GMRFLib_prior_mean_func_eval(thread_id, prior_mean[i]) : 0.0); }