Skip to content

Replaced depreciated cub::Max, cub::Min cub::Sum with cuda::maximum<>…#4500

Merged
WeiqunZhang merged 5 commits intoAMReX-Codes:developmentfrom
ankithadas:CudaReplaceDepreciated
Jun 11, 2025
Merged

Replaced depreciated cub::Max, cub::Min cub::Sum with cuda::maximum<>…#4500
WeiqunZhang merged 5 commits intoAMReX-Codes:developmentfrom
ankithadas:CudaReplaceDepreciated

Conversation

@ankithadas
Copy link
Copy Markdown
Contributor

@ankithadas ankithadas commented Jun 11, 2025

@WeiqunZhang
Copy link
Copy Markdown
Member

I think we need to use #if defined(CCCL_MAJOR_VERSION) && (CCCL_MAJOR_VERSION >= 3) for the new functions.

@ankithadas ankithadas force-pushed the CudaReplaceDepreciated branch from c2e1b31 to 58b47a8 Compare June 11, 2025 09:54
@ankithadas ankithadas marked this pull request as ready for review June 11, 2025 12:49
@WeiqunZhang WeiqunZhang merged commit 51da623 into AMReX-Codes:development Jun 11, 2025
75 checks passed
WeiqunZhang added a commit to WeiqunZhang/amrex that referenced this pull request Sep 8, 2025
There was an issue in AMReX-Codes#4500. It used CCCL_MAJOR_VERSION before it was
defined in a header included by cub.cuh.

Use CUDA 13 in one of the CI test.
WeiqunZhang added a commit to WeiqunZhang/amrex that referenced this pull request Sep 8, 2025
There was an issue in AMReX-Codes#4500. It used CCCL_MAJOR_VERSION before it was
defined in a header included by cub.cuh.

Use CUDA 13 in one of the CI tests.
WeiqunZhang added a commit to WeiqunZhang/amrex that referenced this pull request Sep 8, 2025
There was an issue in AMReX-Codes#4500. It used CCCL_MAJOR_VERSION before it was
defined in a header included by cub.cuh.

Use CUDA 13 in one of the CI tests. Note that we need to install a newer
version of cmake that supports CUDA 13.
WeiqunZhang added a commit to WeiqunZhang/amrex that referenced this pull request Sep 8, 2025
There was an issue in AMReX-Codes#4500. It used CCCL_MAJOR_VERSION before it was
defined in a header included by cub.cuh.

Use CUDA 13 in one of the CI tests. Note that we need to install a newer
version of cmake that supports CUDA 13.
WeiqunZhang added a commit to WeiqunZhang/amrex that referenced this pull request Sep 8, 2025
There was an issue in AMReX-Codes#4500. It used CCCL_MAJOR_VERSION before it was
defined in a header included by cub.cuh.

Use CUDA 13 in one of the CI tests. Note that we need to install a newer
version of cmake that supports CUDA 13.
@WeiqunZhang WeiqunZhang mentioned this pull request Sep 8, 2025
WeiqunZhang added a commit that referenced this pull request Sep 9, 2025
There was an issue in #4500. It used CCCL_MAJOR_VERSION before it was
defined in a header included by cub.cuh.

Fix additional issues with CUDA 13.

Use CUDA 13 in one of the CI tests.

Close #4647
@ankithadas ankithadas deleted the CudaReplaceDepreciated branch January 19, 2026 11:01
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.

2 participants