Skip to content

Commit

Permalink
Fix errors during rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
kingcrimsontianyu committed Feb 26, 2025
1 parent 9d78a60 commit 979ea1e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cpp/include/kvikio/defaults.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ std::vector<int> getenv_or(std::string_view env_var_name, std::vector<int> defau
*/
class defaults {
private:
BS::thread_pool _thread_pool{get_num_threads_from_env()};
BS_thread_pool _thread_pool{get_num_threads_from_env()};
CompatMode _compat_mode;
std::size_t _task_size;
std::size_t _gds_threshold;
Expand Down Expand Up @@ -161,7 +161,7 @@ class defaults {
*
* @return The default thread pool instance.
*/
[[nodiscard]] static BS::thread_pool& thread_pool();
[[nodiscard]] static BS_thread_pool& thread_pool();

/**
* @brief Get the number of threads in the default thread pool.
Expand Down
2 changes: 1 addition & 1 deletion cpp/include/kvikio/parallel_operation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ template <typename F>
std::future<std::size_t> submit_move_only_task(
F op_move_only,
std::uint64_t nvtx_payload = 0ull,
nvtx_color_type nvtx_color = nvtx_manager::default_color())
nvtx_color_type nvtx_color = NvtxManager::default_color())
{
static_assert(std::is_invocable_r_v<std::size_t, F>);
auto op_copyable = make_copyable_lambda(std::move(op_move_only));
Expand Down
1 change: 0 additions & 1 deletion cpp/include/kvikio/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
#pragma once

#include <cassert>
#include <chrono>
#include <cstring>
#include <future>
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/defaults.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ bool defaults::is_compat_mode_preferred(CompatMode compat_mode) noexcept

bool defaults::is_compat_mode_preferred() { return is_compat_mode_preferred(compat_mode()); }

BS::thread_pool& defaults::thread_pool() { return instance()->_thread_pool; }
BS_thread_pool& defaults::thread_pool() { return instance()->_thread_pool; }

unsigned int defaults::thread_pool_nthreads() { return thread_pool().get_thread_count(); }

Expand Down

0 comments on commit 979ea1e

Please sign in to comment.