Skip to content

Commit

Permalink
Cache GPU histogram kernel configuration. (dmlc#10538)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jul 15, 2024
1 parent 04bf401 commit 8674e46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tree/gpu_hist/histogram.cu
Original file line number Diff line number Diff line change
Expand Up @@ -248,13 +248,13 @@ __global__ void __launch_bounds__(kBlockThreads)
agent.BuildHistogramWithGlobal();
}
}

namespace {
constexpr std::int32_t kBlockThreads = 1024;
constexpr std::int32_t kItemsPerThread = 8;
constexpr std::int32_t ItemsPerTile() { return kBlockThreads * kItemsPerThread; }
} // namespace


// Use auto deduction guide to workaround compiler error.
template <auto Global = SharedMemHistKernel<false, kBlockThreads, kItemsPerThread>,
auto Shared = SharedMemHistKernel<true, kBlockThreads, kItemsPerThread>>
Expand Down

0 comments on commit 8674e46

Please sign in to comment.