diff --git a/src/common/hist_util.cc b/src/common/hist_util.cc index 8df650d0219d..c2e1506d4925 100644 --- a/src/common/hist_util.cc +++ b/src/common/hist_util.cc @@ -143,31 +143,31 @@ struct RuntimeFlags { template + typename BinIdxTypeName = uint8_t> class GHistBuildingManager { public: constexpr static bool kAnyMissing = _any_missing; constexpr static bool kFirstPage = _first_page; constexpr static bool kReadByColumn = _read_by_column; - using BinIdxType = _BinIdxType; + using BinIdxType = BinIdxTypeName; private: - template - struct set_first_page { - using type = GHistBuildingManager; + template + struct SetFirstPage { + using Type = GHistBuildingManager; }; - template - struct set_read_by_column { - using type = GHistBuildingManager; + template + struct SetReadByColumn { + using Type = GHistBuildingManager; }; - template - struct set_bin_idx_type { - using type = GHistBuildingManager; + template + struct SetBinIdxType { + using Type = GHistBuildingManager; }; - using type = GHistBuildingManager; + using Type = GHistBuildingManager; public: /* Entry point to dispatcher @@ -178,16 +178,16 @@ class GHistBuildingManager { template static void DispatchAndExecute(const RuntimeFlags& flags, Fn&& fn) { if (flags.first_page != kFirstPage) { - set_first_page::type::DispatchAndExecute(flags, std::forward(fn)); + SetFirstPage::Type::DispatchAndExecute(flags, std::forward(fn)); } else if (flags.read_by_column != kReadByColumn) { - set_read_by_column::type::DispatchAndExecute(flags, std::forward(fn)); + SetReadByColumn::Type::DispatchAndExecute(flags, std::forward(fn)); } else if (flags.bin_type_size != sizeof(BinIdxType)) { DispatchBinType(flags.bin_type_size, [&](auto t) { using NewBinIdxType = decltype(t); - set_bin_idx_type::type::DispatchAndExecute(flags, std::forward(fn)); + SetBinIdxType::Type::DispatchAndExecute(flags, std::forward(fn)); }); } else { - fn(type()); + fn(Type()); } } }; diff --git a/tests/buildkite/pipeline.yml b/tests/buildkite/pipeline.yml index 206910147e9e..0062fc800ff5 100644 --- a/tests/buildkite/pipeline.yml +++ b/tests/buildkite/pipeline.yml @@ -16,6 +16,7 @@ steps: key: run-clang-tidy agents: queue: linux-amd64-cpu + - wait - label: ":console: Build CPU" command: "tests/buildkite/build-cpu.sh" key: build-cpu