Skip to content

Commit

Permalink
Merge pull request #7094 from luotao1/warning
Browse files Browse the repository at this point in the history
fix some warning
  • Loading branch information
luotao1 authored Dec 28, 2017
2 parents 2cdef42 + 717e125 commit 1831176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/platform/for_range.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ struct ForRange<CUDADeviceContext> {

template <typename Function>
inline void operator()(Function func) const {
constexpr size_t num_threads = 1024;
constexpr int num_threads = 1024;
int block_size = limit_ <= num_threads ? limit_ : num_threads;
int grid_size = (limit_ + num_threads - 1) / num_threads;

Expand Down

0 comments on commit 1831176

Please sign in to comment.