Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #495 from dfontainenvidia/1.7.2
Browse files Browse the repository at this point in the history
 Replace remaining non-test use of std::min with thrust::min in max_grid_size
  • Loading branch information
jaredhoberock committed Jun 4, 2014
2 parents 4d2d9fd + 2addc1e commit eff3a97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thrust/system/cuda/detail/detail/stable_merge_sort.inl
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ inline unsigned int max_grid_size(Size block_size)
const unsigned int max_threads = properties.maxThreadsPerMultiProcessor * properties.multiProcessorCount;
const unsigned int max_blocks = properties.maxGridSize[0];

return std::min<unsigned int>(max_blocks, 3 * max_threads / block_size);
return thrust::min<unsigned int>(max_blocks, 3 * max_threads / block_size);
} // end max_grid_size()


Expand Down

0 comments on commit eff3a97

Please sign in to comment.