Unverified Commit d9d17a11 authored by Paul Fultz II's avatar Paul Fultz II Committed by GitHub
Browse files

Boost the max number of workgroups for pointwise ops (#1113)

Boost the max number of workgroups for pointwise ops by matching what we are doing in launch.hpp
parent 36b01ba5
......@@ -240,8 +240,9 @@ std::string enum_params(std::size_t count, std::string param)
std::size_t compute_global(std::size_t n, std::size_t local)
{
std::size_t groups = (n + local - 1) / local;
std::size_t nglobal = std::min<std::size_t>(256, groups) * local;
std::size_t groups = (n + local - 1) / local;
// max possible number of blocks is set to 1B (1,073,741,824)
std::size_t nglobal = std::min<std::size_t>(1073741824, groups) * local;
return nglobal;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment