CUDA 12.5 error: Lambdas __device__ on Thrust requires __host__ #1043
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



The primary CUDA 12.5 error involves extended
__device__lambda functions passed to host-side Thrust functions, which now strictly require__host__ __device__for return type inference.Error example:
/opt/scipion/software/em/xmippSrc-v3.25.06.0-Rhea/src/xmipp/libraries/reconstruction_cuda/cuda_volume_restoration_kernels.cpp:289:16: required from here\nnvcc_internal_extended_lambda_implementation:361:146: error: static assertion failed: Attempt to use an extended __device__ lambda in a context that requires querying its return type in host code. Use a named function object, a __host__ __device__ lambda, or cuda::proclaim_return_type instead.\nnvcc_internal_extended_lambda_implementation:361:146: note: '