From c9180edff7de451c4d2821d1c930d412cdb6aaea Mon Sep 17 00:00:00 2001 From: Young Geun Kim Date: Thu, 19 Dec 2024 20:18:28 +0900 Subject: [PATCH] revert chunk size [skip ci] --- inst/include/bvharforecaster.h | 2 +- src/spillover-ldlt.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inst/include/bvharforecaster.h b/inst/include/bvharforecaster.h index 8ec3fc09..1e1ddfa2 100644 --- a/inst/include/bvharforecaster.h +++ b/inst/include/bvharforecaster.h @@ -691,7 +691,7 @@ class McmcOutforecastRun { } } else { #ifdef _OPENMP - #pragma omp parallel for collapse(2) schedule(static, num_horizon) num_threads(nthreads) + #pragma omp parallel for collapse(2) schedule(static, num_chains) num_threads(nthreads) #endif for (int window = 0; window < num_horizon; ++window) { for (int chain = 0; chain < num_chains; ++chain) { diff --git a/src/spillover-ldlt.cpp b/src/spillover-ldlt.cpp index 0c82ecdc..a2ec2750 100644 --- a/src/spillover-ldlt.cpp +++ b/src/spillover-ldlt.cpp @@ -98,7 +98,7 @@ Rcpp::List dynamic_bvarldlt_spillover(Eigen::MatrixXd y, int window, int step, i } } else { #ifdef _OPENMP - #pragma omp parallel for collapse(2) schedule(static, num_horizon) num_threads(nthreads) + #pragma omp parallel for collapse(2) schedule(static, num_chains) num_threads(nthreads) #endif for (int window = 0; window < num_horizon; window++) { for (int chain = 0; chain < num_chains; chain++) { @@ -208,7 +208,7 @@ Rcpp::List dynamic_bvharldlt_spillover(Eigen::MatrixXd y, int window, int step, } } else { #ifdef _OPENMP - #pragma omp parallel for collapse(2) schedule(static, num_horizon) num_threads(nthreads) + #pragma omp parallel for collapse(2) schedule(static, num_chains) num_threads(nthreads) #endif for (int window = 0; window < num_horizon; window++) { for (int chain = 0; chain < num_chains; chain++) {