Skip to content

Commit

Permalink
Build: MPMD w/ MPI Only (#316)
Browse files Browse the repository at this point in the history
```
[ 60%] Building CXX object CMakeFiles/pyAMReX_2d.dir/src/Base/MPMD.cpp.o
$BUILD_PREFIX/bin/x86_64-conda-linux-gnu-c++ -DAMREX_SPACEDIM=2 -DpyAMReX_2d_EXPORTS -I$SRC_DIR/src -I$PREFIX/share/amrex/C_scripts -isystem $PREFIX/include/python3.10 -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/pyamrex-24.05 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -Wall -Wextra -Wpedantic -Wshadow -Woverloaded-virtual -Wunreachable-code -O3 -DNDEBUG -std=c++17 -fPIC -fvisibility=hidden -pthread -fopenmp -flto -fno-fat-lto-objects -MD -MT CMakeFiles/pyAMReX_2d.dir/src/Base/MPMD.cpp.o -MF CMakeFiles/pyAMReX_2d.dir/src/Base/MPMD.cpp.o.d -o CMakeFiles/pyAMReX_2d.dir/src/Base/MPMD.cpp.o -c $SRC_DIR/src/Base/MPMD.cpp
/home/conda/feedstock_root/build_artifacts/pyamrex_1715553474293/work/src/Base/MPMD.cpp:11:10: fatal error: AMReX_MPMD.H: No such file or directory
   11 | #include <AMReX_MPMD.H>
      |          ^~~~~~~~~~~~~~
```
  • Loading branch information
ax3l authored May 13, 2024
1 parent 28f7a8d commit 1e1392c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ foreach(D IN LISTS AMReX_SPACEDIM)
Utility.cpp
Vector.cpp
Version.cpp
MPMD.cpp
)

if (AMReX_MPI)
target_sources(pyAMReX_${D}d
PRIVATE
MPMD.cpp
)
endif()
endforeach()

0 comments on commit 1e1392c

Please sign in to comment.