Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove
cuda::proclaim_return_type
from nested lambda (rapidsai#14607)
This removes `cuda::proclaim_return_type` from a device lambda because that lambda is going to be nested inside another device lambda, which is in turn enclosed by `cuda::proclaim_return_type`. This PR is to fix a compile issue that we encountered: ``` /usr/local/cuda/include/cuda/std/detail/libcxx/include/__functional/invoke.h(402): error: calling a __device__ function("cudf::tdigest::detail::_NV_ANON_NAMESPACE::build_output_column(int, ::std::unique_ptr< ::cudf::column, ::std::default_delete< ::cudf::column> > &&, ::std::unique_ptr< ::cudf::column, ::std::default_delete< ::cudf::column> > &&, ::std::unique_ptr< ::cudf::column, ::std::default_delete< ::cudf::column> > &&, ::std::unique_ptr< ::cudf::column, ::std::default_delete< ::cudf::column> > &&, ::std::unique_ptr< ::cudf::column, ::std::default_delete< ::cudf::column> > &&, bool, ::rmm::cuda_stream_view, ::rmm::mr::device_memory_resource *) ::[lambda(int) (instance 2)]::operator ()(int) const") from a __host__ __device__ function("__invoke") is not allowed ``` Note: The issue is reproducible only in our build environment: ARM architecture, cuda 12 + rockylinux8. Closes rapidsai#14610. Authors: - Nghia Truong (https://github.com/ttnghia) Approvers: - Michael Schellenberger Costa (https://github.com/miscco) - Karthikeyan (https://github.com/karthikeyann) - https://github.com/nvdbaranec - Bradley Dice (https://github.com/bdice) URL: rapidsai#14607
- Loading branch information