Integrate new CUDA merge sort.
Replace some instances of blockIdx.x with ctx.block_index().
Eliminate superfluous #pragma unroll
Eliminate superfluous #pragma unroll.
Tweak iterator computation to avoid losing track of __shared__ pointers.
Merge branch 'master' of github.com:thrust/thrust into merge_sort
Work around sm_1x issues.
Use thrust::min & thrust::max with explicit template parameter.
Fix buggy implementation of log2_ri and clz.
Use a smaller block size for sm_10-compiled kernels.
Eliminate multiarch_statically_blocked_thread_array.
Introduce virtualized_smem_closure.
Use a static block size of 256 for CUDA's merge sort.
Virtualize shared memory in CUDA's merge sort if we can't afford physical smem.
Eliminate stray use of blockIdx from CUDA's merge sort code.
Eliminate typo.
Don't try to sort if n <= 0
Merge pull request #373 from jaredhoberock/merge_sort

Merge sort