-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11790 from KratosMultiphysics/core/new-compile-pi…
…peline [CORE] [Do not merge] Testing new compilation options
- Loading branch information
Showing
22 changed files
with
615 additions
and
387 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash | ||
# You can use your interpreter of choice (bash, sh, zsh, ...) | ||
|
||
# For any question please contact with us in: | ||
# - https://github.com/KratosMultiphysics/Kratos | ||
|
||
# Optional parameters: | ||
# You can find a list with all the compilation options in INSTALL.md or here: | ||
# - https://github.com/KratosMultiphysics/Kratos/wiki/Compilation-options | ||
|
||
add_app () { | ||
export KRATOS_APPLICATIONS="${KRATOS_APPLICATIONS}$1;" | ||
} | ||
|
||
# Set variables | ||
export KRATOS_SOURCE="${KRATOS_SOURCE:-${PWD}}" | ||
export KRATOS_BUILD="${KRATOS_SOURCE}/build" | ||
export KRATOS_APP_DIR="${KRATOS_SOURCE}/applications" | ||
export PYTHON_EXECUTABLE="/usr/bin/python3.10" | ||
export KRATOS_INSTALL_PYTHON_USING_LINKS=ON | ||
|
||
# Set applications to compile | ||
add_app ${KRATOS_APP_DIR}/LinearSolversApplication; | ||
add_app ${KRATOS_APP_DIR}/MetisApplication; | ||
add_app ${KRATOS_APP_DIR}/TrilinosApplication; | ||
|
||
# Clean | ||
clear | ||
rm -rf "${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}/cmake_install.cmake" | ||
rm -rf "${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}/CMakeCache.txt" | ||
rm -rf "${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}/CMakeFiles" | ||
|
||
echo "Kratos build type is ${KRATOS_BUILD_TYPE}" | ||
|
||
# Configure | ||
cmake -H"${KRATOS_SOURCE}" -B"${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}" \ | ||
${KRATOS_CMAKE_OPTIONS_FLAGS} \ | ||
-DUSE_MPI=ON \ | ||
-DCMAKE_CXX_FLAGS="${KRATOS_CMAKE_CXX_FLAGS} -O0 -Wall" \ | ||
-DTRILINOS_INCLUDE_DIR="/usr/include/trilinos" \ | ||
-DTRILINOS_LIBRARY_DIR="/usr/lib/x86_64-linux-gnu" \ | ||
-DTRILINOS_LIBRARY_PREFIX="trilinos_" \ | ||
-DCMAKE_UNITY_BUILD=ON | ||
|
||
# Build | ||
cmake --build "${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}" --target install -- -j${KRATOS_CI_CORES} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/bin/bash | ||
# You can use your interpreter of choice (bash, sh, zsh, ...) | ||
|
||
# For any question please contact with us in: | ||
# - https://github.com/KratosMultiphysics/Kratos | ||
|
||
# Optional parameters: | ||
# You can find a list with all the compilation options in INSTALL.md or here: | ||
# - https://github.com/KratosMultiphysics/Kratos/wiki/Compilation-options | ||
|
||
add_app () { | ||
export KRATOS_APPLICATIONS="${KRATOS_APPLICATIONS}$1;" | ||
} | ||
|
||
# Set variables | ||
export KRATOS_SOURCE="${KRATOS_SOURCE:-${PWD}}" | ||
export KRATOS_BUILD="${KRATOS_SOURCE}/build" | ||
export KRATOS_APP_DIR="${KRATOS_SOURCE}/applications" | ||
export PYTHON_EXECUTABLE="/usr/bin/python3.10" | ||
export KRATOS_INSTALL_PYTHON_USING_LINKS=ON | ||
|
||
# Set applications to compile | ||
add_app ${KRATOS_APP_DIR}/FluidDynamicsApplication; | ||
add_app ${KRATOS_APP_DIR}/StructuralMechanicsApplication; | ||
add_app ${KRATOS_APP_DIR}/ConstitutiveLawsApplication; | ||
add_app ${KRATOS_APP_DIR}/GeoMechanicsApplication; | ||
add_app ${KRATOS_APP_DIR}/ConvectionDiffusionApplication; | ||
add_app ${KRATOS_APP_DIR}/RomApplication; | ||
|
||
# Clean | ||
clear | ||
rm -rf "${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}/cmake_install.cmake" | ||
rm -rf "${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}/CMakeCache.txt" | ||
rm -rf "${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}/CMakeFiles" | ||
|
||
echo "Kratos build type is ${KRATOS_BUILD_TYPE}" | ||
|
||
# Configure | ||
cmake -H"${KRATOS_SOURCE}" -B"${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}" \ | ||
${KRATOS_CMAKE_OPTIONS_FLAGS} \ | ||
-DUSE_MPI=ON \ | ||
-DEXCLUDE_KRATOS_CORE=ON \ | ||
-DEXCLUDE_AUTOMATIC_DEPENDENCIES=ON \ | ||
-DREMOVE_INSTALL_DIRECTORIES=OFF \ | ||
-DCMAKE_CXX_FLAGS="${KRATOS_CMAKE_CXX_FLAGS} -O0 -Wall" \ | ||
-DTRILINOS_INCLUDE_DIR="/usr/include/trilinos" \ | ||
-DTRILINOS_LIBRARY_DIR="/usr/lib/x86_64-linux-gnu" \ | ||
-DTRILINOS_LIBRARY_PREFIX="trilinos_" \ | ||
-DCMAKE_UNITY_BUILD=ON | ||
|
||
# Build | ||
cmake --build "${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}" --target install -- -j${KRATOS_CI_CORES} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/bin/bash | ||
# You can use your interpreter of choice (bash, sh, zsh, ...) | ||
|
||
# For any question please contact with us in: | ||
# - https://github.com/KratosMultiphysics/Kratos | ||
|
||
# Optional parameters: | ||
# You can find a list with all the compilation options in INSTALL.md or here: | ||
# - https://github.com/KratosMultiphysics/Kratos/wiki/Compilation-options | ||
|
||
add_app () { | ||
export KRATOS_APPLICATIONS="${KRATOS_APPLICATIONS}$1;" | ||
} | ||
|
||
# Set variables | ||
export KRATOS_SOURCE="${KRATOS_SOURCE:-${PWD}}" | ||
export KRATOS_BUILD="${KRATOS_SOURCE}/build" | ||
export KRATOS_APP_DIR="${KRATOS_SOURCE}/applications" | ||
export PYTHON_EXECUTABLE="/usr/bin/python3.10" | ||
export KRATOS_INSTALL_PYTHON_USING_LINKS=ON | ||
|
||
# Set applications to compile | ||
add_app ${KRATOS_APP_DIR}/HDF5Application; | ||
add_app ${KRATOS_APP_DIR}/MedApplication; | ||
add_app ${KRATOS_APP_DIR}/MappingApplication; | ||
add_app ${KRATOS_APP_DIR}/MeshMovingApplication; | ||
add_app ${KRATOS_APP_DIR}/MeshingApplication; | ||
add_app ${KRATOS_APP_DIR}/StatisticsApplication; | ||
|
||
|
||
# Clean | ||
clear | ||
rm -rf "${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}/cmake_install.cmake" | ||
rm -rf "${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}/CMakeCache.txt" | ||
rm -rf "${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}/CMakeFiles" | ||
|
||
echo "Kratos build type is ${KRATOS_BUILD_TYPE}" | ||
|
||
# Configure | ||
cmake -H"${KRATOS_SOURCE}" -B"${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}" \ | ||
${KRATOS_CMAKE_OPTIONS_FLAGS} \ | ||
-DUSE_MPI=ON \ | ||
-DEXCLUDE_KRATOS_CORE=ON \ | ||
-DEXCLUDE_AUTOMATIC_DEPENDENCIES=ON \ | ||
-DREMOVE_INSTALL_DIRECTORIES=OFF \ | ||
-DCMAKE_CXX_FLAGS="${KRATOS_CMAKE_CXX_FLAGS} -O0 -Wall" \ | ||
-DTRILINOS_INCLUDE_DIR="/usr/include/trilinos" \ | ||
-DTRILINOS_LIBRARY_DIR="/usr/lib/x86_64-linux-gnu" \ | ||
-DTRILINOS_LIBRARY_PREFIX="trilinos_" \ | ||
-DCMAKE_UNITY_BUILD=ON \ | ||
-DINCLUDE_MMG=ON \ | ||
|
||
# Build | ||
cmake --build "${KRATOS_BUILD}/${KRATOS_BUILD_TYPE}" --target install -- -j${KRATOS_CI_CORES} |
Oops, something went wrong.