Skip to content

Compilation error on WarpX 25.08 with CUDA toolkit 13.0 #6145

@denisbertini

Description

@denisbertini

Hi there,
trying to compile the latest vesion 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

Labels

backend: cudaSpecific to CUDA execution (GPUs)installquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions