Skip to content

Commit

Permalink
Set verbose make builds on docker, improve slepc module
Browse files Browse the repository at this point in the history
  • Loading branch information
chapman39 committed Apr 29, 2024
1 parent 5afe08b commit edf6fff
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
24 changes: 14 additions & 10 deletions cmake/thirdparty/FindSLEPc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,21 @@ if(NOT ARPACK_DIR)
message(FATAL_ERROR "Could not find arpack. Slepc requires ARPACK_DIR.")
endif()

# Add missing arpack include dir and link libs
target_include_directories(PkgConfig::SLEPC INTERFACE ${ARPACK_DIR}/include)
target_link_libraries(PkgConfig::SLEPC INTERFACE ${ARPACK_DIR}/lib64/libparpack.so)
# Give slepc petsc's link libs and dirs and add missing arpack include dir and link libs

# Give slepc petsc's link libs and dirs
get_target_property(_petsc_link_libs PkgConfig::PETSC INTERFACE_LINK_LIBRARIES)
get_target_property(_petsc_link_dirs PkgConfig::PETSC INTERFACE_LINK_DIRECTORIES)
target_link_libraries(PkgConfig::SLEPC INTERFACE ${_petsc_link_libs})
target_link_directories(PkgConfig::SLEPC INTERFACE ${_petsc_link_dirs})

# Remove duplicates from INTERFACE_LINK_LIBRARIES
# Link libraries
get_target_property(_slepc_link_libs PkgConfig::SLEPC INTERFACE_LINK_LIBRARIES)
get_target_property(_petsc_link_libs PkgConfig::PETSC INTERFACE_LINK_LIBRARIES)
list(APPEND _slepc_link_libs ${ARPACK_DIR}/lib64/libparpack.so ${_petsc_link_libs})
blt_list_remove_duplicates(TO _slepc_link_libs)
set_target_properties(PkgConfig::SLEPC PROPERTIES INTERFACE_LINK_LIBRARIES "${_slepc_link_libs}")

# Include directories
get_target_property(_slepc_include_dirs PkgConfig::SLEPC INTERFACE_INCLUDE_DIRECTORIES)
list(APPEND _slepc_include_dirs ${ARPACK_DIR}/include)
set_target_properties(PkgConfig::SLEPC PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${_slepc_include_dirs}")

# Link directories
get_target_property(_petsc_link_dirs PkgConfig::PETSC INTERFACE_LINK_DIRECTORIES)
set(_slepc_link_dirs ${_petsc_link_dirs})
set_target_properties(PkgConfig::SLEPC PROPERTIES INTERFACE_LINK_DIRECTORIES "${_slepc_link_dirs}")
2 changes: 1 addition & 1 deletion scripts/docker/dockerfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ RUN cp ./serac_repo/*.cmake /home/serac/export_hostconfig

# Make sure the new hostconfig worked
# Note: having high job slots causes build log to disappear and job to fail
RUN cd serac_repo && python3 config-build.py -hc *.cmake -bp build && cd build && make -j4 && make -j4 test && cd /home/serac && rm -rf serac_repo
RUN cd serac_repo && python3 config-build.py -hc *.cmake -bp build && cd build && make -j4 VERBOSE=1 && make -j4 test && cd /home/serac && rm -rf serac_repo
2 changes: 1 addition & 1 deletion scripts/docker/dockerfile_clang-14
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ RUN cp ./serac_repo/*.cmake /home/serac/export_hostconfig

# Make sure the new hostconfig worked
# Note: having high job slots causes build log to disappear and job to fail
RUN cd serac_repo && python3 config-build.py -hc *.cmake -bp build && cd build && make -j4 && make -j4 test && cd /home/serac && rm -rf serac_repo
RUN cd serac_repo && python3 config-build.py -hc *.cmake -bp build && cd build && make -j4 VERBOSE=1 && make -j4 test && cd /home/serac && rm -rf serac_repo
2 changes: 1 addition & 1 deletion scripts/docker/dockerfile_gcc-13
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ RUN cp ./serac_repo/*.cmake /home/serac/export_hostconfig

# Make sure the new hostconfig worked
# Note: having high job slots causes build log to disappear and job to fail
RUN cd serac_repo && python3 config-build.py -hc *.cmake -bp build && cd build && make -j4 && make -j4 test && cd /home/serac && rm -rf serac_repo
RUN cd serac_repo && python3 config-build.py -hc *.cmake -bp build && cd build && make -j4 VERBOSE=1 && make -j4 test && cd /home/serac && rm -rf serac_repo

0 comments on commit edf6fff

Please sign in to comment.