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

Commit eff3a97

Browse files
committed
Merge pull request #495 from dfontainenvidia/1.7.2
Replace remaining non-test use of std::min with thrust::min in max_grid_size
2 parents 4d2d9fd + 2addc1e commit eff3a97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

thrust/system/cuda/detail/detail/stable_merge_sort.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ inline unsigned int max_grid_size(Size block_size)
127127
const unsigned int max_threads = properties.maxThreadsPerMultiProcessor * properties.multiProcessorCount;
128128
const unsigned int max_blocks = properties.maxGridSize[0];
129129

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

133133

0 commit comments

Comments
 (0)