thrust::cuda_cub::cub::DeviceSelect::Flagged works in Debug mode but fails in Release Mode on Windows

Using CUDA 10.0. Has anyone encountered this issue?