Skip to content

Commit

Permalink
Remove auto omp scheduling because windows fucking sucks
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesYang007 committed Nov 27, 2024
1 parent e6e5add commit 1e23cef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions adelie/src/include/adelie_core/util/omp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ inline void omp_parallel_for(
} else if constexpr (schedule_type == util::omp_schedule_type::_runtime) {
#pragma omp parallel for schedule(runtime) num_threads(n_threads)
for (Eigen::Index i = begin; i < end; ++i) f(i);
} else if constexpr (schedule_type == util::omp_schedule_type::_auto) {
#pragma omp parallel for schedule(auto) num_threads(n_threads)
for (Eigen::Index i = begin; i < end; ++i) f(i);
} else {
// dummy check since we cannot put "false" (early compiler error)
static_assert(schedule_type == util::omp_schedule_type::_static, "Unrecognized schedule type.");
Expand Down
3 changes: 1 addition & 2 deletions adelie/src/include/adelie_core/util/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ enum class omp_schedule_type
_static,
_dynamic,
_guided,
_runtime,
_auto
_runtime
};

inline screen_rule_type convert_screen_rule(
Expand Down

0 comments on commit 1e23cef

Please sign in to comment.