thrust/transform_reduce.h should be included in psz/src/stat/detail/compare.thrust.inl to avoid a build failure. thrust/iterator/zip_iterator.h and thrust/functional.h for thrust::plus are also missing. Please don't rely on implicit includes that can break any time.