Skip to content

CUDA 13.0 compilation errors #4647

@denisbertini

Description

@denisbertini

Hi
trying to compile the latest version of WarpX ( 25.08 ) with CUDA toolkit 13.0 i receive this king of compilation errors:

2%] Building CXX object _deps/fetchedopenpmd-build/CMakeFiles/openPMD.dir/src/Iteration.cpp.o
/tmp/warp/WarpX/build/_deps/fetchedamrex-src/Src/Base/AMReX_GpuReduce.H(429): error: namespace "cub" has no member "Min"
return BlockReduce(temp_storage).Reduce(source, cub::Min());
^

/tmp/warp/WarpX/build/_deps/fetchedamrex-src/Src/Base/AMReX_GpuReduce.H(483): error: namespace "cub" has no member "Max"
return BlockReduce(temp_storage).Reduce(source, cub::Max());
^

/tmp/warp/WarpX/build/_deps/fetchedamrex-src/Src/Base/AMReX_GpuReduce.H(429): error: namespace "cub" has no member "Min"
return BlockReduce(temp_storage).Reduce(source, cub::Min());
^

/tmp/warp/WarpX/build/_deps/fetchedamrex-src/Src/Base/AMReX_GpuReduce.H(429): error: namespace "cub" has no member "Min"
return BlockReduce(temp_storage).Reduce(source, cub::Min());
^

/tmp/warp/WarpX/build/_deps/fetchedamrex-src/Src/Base/AMReX_GpuReduce.H(483): error: namespace "cub" has no member "Max"
return BlockReduce(temp_storage).Reduce(source, cub::Max());
^

/tmp/warp/WarpX/build/_deps/fetchedamrex-src/Src/Base/AMReX_GpuReduce.H(483): error: namespace "cub" has no member "Max"
return BlockReduce(temp_storage).Reduce(source, cub::Max());
^

2 errors detected in the compilation of "/tmp/warp/WarpX/build/_deps/fetchedamrex-src/Src/Base/AMReX_BlockMutex.cpp".
2 errors detected in the compilation of "/tmp/warp/WarpX/build/_deps/fetchedamrex-src/Src/Base/AMReX_BlockMutex.cpp".
2 errors detected in the compilation of "/tmp/warp/WarpX/build/_deps/fetchedamrex-src/Src/Base/AMReX_BlockMutex.cpp".
which seems to be linked to the underlying AMReX code base. Any idea how i can solve that ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions