Skip to content

Commit

Permalink
revert chunk size [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ygeunkim committed Dec 19, 2024
1 parent d7d5f80 commit c9180ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion inst/include/bvharforecaster.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions src/spillover-ldlt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down Expand Up @@ -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++) {
Expand Down

0 comments on commit c9180ed

Please sign in to comment.