Device-side thrust::count_if lambda should capture by value
Device-side thrust::count_if lambda should capture by value

Previous capture by reference would be an invalid memory access across
a kernel launch.

MMp131316/code-samples,MMp131316/code-samples,xiongzhanblake/code-samples,MMp131316/code-samples,xiongzhanblake/code-samples,MMp131316/code-samples,xiongzhanblake/code-samples,xiongzhanblake/code-samples,xiongzhanblake/code-samples,MMp131316/code-samples,xiongzhanblake/code-samples,xiongzhanblake/code-samples,MMp131316/code-samples,MMp131316/code-samples