Skip to content

Conversation

@albertmena
Copy link
Collaborator

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: '

@albertmena albertmena requested a review from oierlauzi October 22, 2025 09:39
@sonarqubecloud
Copy link

@albertmena albertmena changed the title CUDA 12.5 error: Lambdas __device__ on Thrust. CUDA 12.5 now requires __host__ … CUDA 12.5 error: Lambdas __device__ on Thrust requires __host__ Oct 22, 2025
@albertmena albertmena merged commit df8c763 into devel Oct 22, 2025
5 checks passed
@albertmena albertmena deleted the agm_cuda_12_5 branch October 22, 2025 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants