We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2cdef42 + 717e125 commit 1831176Copy full SHA for 1831176
paddle/platform/for_range.h
@@ -62,7 +62,7 @@ struct ForRange<CUDADeviceContext> {
62
63
template <typename Function>
64
inline void operator()(Function func) const {
65
- constexpr size_t num_threads = 1024;
+ constexpr int num_threads = 1024;
66
int block_size = limit_ <= num_threads ? limit_ : num_threads;
67
int grid_size = (limit_ + num_threads - 1) / num_threads;
68
0 commit comments