Skip to content

Commit

Permalink
Fix build system typos for libxsmm and ScaLAPACK
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiangrimberg committed Feb 2, 2024
1 parent 3c8c6bc commit 164cc37
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions cmake/ExternalLIBXSMM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ set(LIBXSMM_DEPENDENCIES)

set(LIBXSMM_OPTIONS
"PREFIX=${CMAKE_INSTALL_PREFIX}"
"OUTDIR=${CMAKE_INSTALL_PREFIX}/lib"
"DIRSTATE=."
"PPKGDIR=lib/pkgconfig"
"PMODDIR=lib/pkgconfig"
"CC=${CMAKE_C_COMPILER}"
"CXX=${CMAKE_CXX_COMPILER}"
"FC="
"FORTRAN=0"
"BLAS=0" # For now, no BLAS linkage (like PyFR)
"SYM=1" # Always build with symbols
"VERBOSE=1"
"PPKGDIR=lib/pkgconfig"
"PMODDIR=lib/pkgconfig"
)

# Always build LIBXSMM as a shared library
Expand Down Expand Up @@ -56,6 +58,15 @@ ExternalProject_Add(libxsmm
UPDATE_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} ${LIBXSMM_OPTIONS} install-minimal
INSTALL_COMMAND
${CMAKE_MAKE_PROGRAM} ${LIBXSMM_OPTIONS} install-minimal &&
${CMAKE_COMMAND} -E remove -f "${CMAKE_INSTALL_PREFIX}/lib/.make" &&
${CMAKE_COMMAND} -E remove -f "${CMAKE_INSTALL_PREFIX}/lib/libxsmm.pc" &&
${CMAKE_COMMAND} -E remove -f "${CMAKE_INSTALL_PREFIX}/lib/libxsmmext.pc" &&
${CMAKE_COMMAND} -E remove -f "${CMAKE_INSTALL_PREFIX}/lib/libxsmmnoblas.pc" &&
${CMAKE_COMMAND} -E remove -f "${CMAKE_INSTALL_PREFIX}/lib/libxsmm-shared.pc" &&
${CMAKE_COMMAND} -E remove -f "${CMAKE_INSTALL_PREFIX}/lib/libxsmmext-shared.pc" &&
${CMAKE_COMMAND} -E remove -f "${CMAKE_INSTALL_PREFIX}/lib/libxsmmnoblas-shared.pc" &&
${CMAKE_COMMAND} -E remove -f "${CMAKE_INSTALL_PREFIX}/lib/libxsmm.env"
TEST_COMMAND ""
)
2 changes: 1 addition & 1 deletion cmake/ExternalScaLAPACK.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ if(BUILD_SHARED_LIBS)
else()
set(_SCALAPACK_LIB_SUFFIX ${CMAKE_STATIC_LIBRARY_SUFFIX})
endif()
set(SCALAPACK_LIBRARIES ${CMAKE_INSTALL_PREFIX}/lib/libscalapack${_SCALAPACK_LIB_SUFFIX}$<SEMICOLON>${_SCALAPACK_LIBRARIES}
set(SCALAPACK_LIBRARIES ${CMAKE_INSTALL_PREFIX}/lib/libscalapack${_SCALAPACK_LIB_SUFFIX}
CACHE STRING "List of library files for ScaLAPACK"
)

0 comments on commit 164cc37

Please sign in to comment.