Skip to content

Commit b8be4ea

Browse files
committed
dependencies upd for rusty + mpi include in reporter
1 parent ec282e3 commit b8be4ea

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

dependencies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def InstallNt2pyScript(settings: Settings) -> str:
293293

294294
PRESETS = {
295295
"rusty": {
296-
"module_loads": ["openmpi/5.0.6.lua", "cuda/12.8.0.lua", "gcc/14.2.0.lua"],
296+
"module_loads": ["openmpi/cuda-4.1.8", "cuda/12.8.0.lua", "gcc/14.2.0.lua"],
297297
"kokkos_backend": "cuda",
298298
"kokkos_arch": "AMPERE80",
299299
"adios2_mpi": "mpi",

src/global/utils/reporter.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
#include <adios2.h>
1616
#endif
1717

18+
#if defined(MPI_ENABLED)
19+
#include <mpi.h>
20+
#endif
21+
1822
#include <Kokkos_Core.hpp>
1923

2024
#include <string>
@@ -80,7 +84,7 @@ namespace reporter {
8084
auto Backend() -> std::string {
8185
std::string report = "";
8286
#if defined(MPI_ENABLED)
83-
int mpi_v, mpi_subv;
87+
int mpi_v = -1, mpi_subv = -1;
8488
MPI_Get_version(&mpi_v, &mpi_subv);
8589
const std::string mpi_version = fmt::format("%d.%d", mpi_v, mpi_subv);
8690
#else // not MPI_ENABLED

0 commit comments

Comments
 (0)