"src/eliminate_common_subexpression.cpp" did not exist on "801ca743bbfdc93f1f06ba4c52502812816289d3"
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
...@@ -241,7 +241,8 @@ std::string enum_params(std::size_t count, std::string param) ...@@ -241,7 +241,8 @@ 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 compute_global(std::size_t n, std::size_t local)
{ {
std::size_t groups = (n + local - 1) / local; std::size_t groups = (n + local - 1) / local;
std::size_t nglobal = std::min<std::size_t>(256, groups) * 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; 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