I think you might have been hitting an already fixed issue in the way cub/thrust was used, which was fixed here 25. The fix also contains a link to a potentially related error.
Thanks for the kind words!