Skip to content

Commit

Permalink
Merge branch 'develop' into adelus-add-old-factorsolve-interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
vqd8a committed Dec 19, 2022
2 parents ce28ae5 + ba69621 commit 4366811
Show file tree
Hide file tree
Showing 152 changed files with 3,867 additions and 2,627 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/title_to_mention.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Automatically at mention package teams if the package name is in the title
# Because evidently github won't let non-members do this.

on:
issues:
types: [opened, labeled]

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

permissions:
contents: read
issues: write

jobs:
comment:
runs-on: ubuntu-latest

steps:
- name: Mention MueLu
uses: peter-evans/create-or-update-comment@v2
if: contains(github.event.label.name, 'MueLu') || contains(github.event.issue.title, 'MueLu')
with:
issue-number: ${{ github.event.issue.number }}
body: |
Automatic mention of the @trilinos/muelu team
- name: Mention Ifpack2
uses: peter-evans/create-or-update-comment@v2
if: contains(github.event.label.name, 'Ifpack2') || contains(github.event.issue.title, 'Ifpack2')
with:
issue-number: ${{ github.event.issue.number }}
body: |
Automatic mention of the @trilinos/ifpack2 team
31 changes: 31 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,37 @@ INCLUDE(${CMAKE_CURRENT_LIST_DIR}/ProjectName.cmake)
# not in an include file :-(
PROJECT(${PROJECT_NAME} NONE)

if($ENV{CCACHE_NODISABLE})
# ccache must be requested explicitly by setting env-var CCACHE_NODISABLE
find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
# Set up wrapper scripts
set(C_LAUNCHER "${CCACHE_PROGRAM}")
set(CXX_LAUNCHER "${CCACHE_PROGRAM}")
configure_file(launch-c.in launch-c)
configure_file(launch-cxx.in launch-cxx)
execute_process(COMMAND chmod a+rx
"${CMAKE_BINARY_DIR}/launch-c"
"${CMAKE_BINARY_DIR}/launch-cxx"
)

if(CMAKE_GENERATOR STREQUAL "Xcode")
# Set Xcode project attributes to route compilation and linking
# through our scripts
set(CMAKE_XCODE_ATTRIBUTE_CC "${CMAKE_BINARY_DIR}/launch-c")
set(CMAKE_XCODE_ATTRIBUTE_CXX "${CMAKE_BINARY_DIR}/launch-cxx")
set(CMAKE_XCODE_ATTRIBUTE_LD "${CMAKE_BINARY_DIR}/launch-c")
set(CMAKE_XCODE_ATTRIBUTE_LDPLUSPLUS "${CMAKE_BINARY_DIR}/launch-cxx")
else()
# Support Unix Makefiles and Ninja
set(CMAKE_C_COMPILER_LAUNCHER "${CMAKE_BINARY_DIR}/launch-c")
set(CMAKE_CXX_COMPILER_LAUNCHER "${CMAKE_BINARY_DIR}/launch-cxx")
endif()
else()
message(WARNING "ccache requested but not found")
endif()
endif()

## set an env so we know we are in configure
set(ENV{CMAKE_IS_IN_CONFIGURE_MODE} 1)

Expand Down
4 changes: 2 additions & 2 deletions cmake/TPLs/FindTPLSuperLUDist.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ int main()

SET(CMAKE_REQUIRED_LIBRARIES SuperLUDist::all_libs)
SET(CMAKE_REQUIRED_FLAGS ${CMAKE_EXE_LINKER_FLAGS})
CHECK_C_SOURCE_COMPILES("${SOURCE}" ${VARNAME})
CHECK_CXX_SOURCE_COMPILES("${SOURCE}" ${VARNAME})
ENDFUNCTION()

# Version 4.0 of SuperLU_DIST changed the calling parameters of the
Expand All @@ -102,7 +102,7 @@ int main()

SET(CMAKE_REQUIRED_LIBRARIES SuperLUDist::all_libs)
SET(CMAKE_REQUIRED_FLAGS ${CMAKE_EXE_LINKER_FLAGS})
CHECK_C_SOURCE_COMPILES("${SOURCE}" ${VARNAME})
CHECK_CXX_SOURCE_COMPILES("${SOURCE}" ${VARNAME})
ENDFUNCTION()

IF (TPL_ENABLE_SuperLUDist)
Expand Down
10 changes: 10 additions & 0 deletions launch-c.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# Xcode generator doesn't include the compiler as the
# first argument, Ninja and Makefiles do. Handle both cases.
if [[ "$1" = "${CMAKE_C_COMPILER}" ]] ; then
shift
fi

export CCACHE_CPP2=true
exec "${C_LAUNCHER}" "${CMAKE_C_COMPILER}" "$@"
10 changes: 10 additions & 0 deletions launch-cxx.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# Xcode generator doesn't include the compiler as the
# first argument, Ninja and Makefiles do. Handle both cases.
if [[ "$1" = "${CMAKE_CXX_COMPILER}" ]] ; then
shift
fi

export CCACHE_CPP2=true
exec "${CXX_LAUNCHER}" "${CMAKE_CXX_COMPILER}" "$@"
199 changes: 199 additions & 0 deletions packages/framework/ini-files/config-specs.ini
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,7 @@ opt-set-cmake-var Trilinos_ENABLE_SECONDARY_TESTED_CODE BOOL : ON
[USE-RDC|YES]
opt-set-cmake-var CMAKE_CXX_FLAGS STRING FORCE : ${CMAKE_CXX_FLAGS|CMAKE} --remove-duplicate-link-files
opt-set-cmake-var Kokkos_ENABLE_CUDA_RELOCATABLE_DEVICE_CODE BOOL FORCE : ON
opt-set-cmake-var Stokhos_ENABLE_MueLu BOOL FORCE : OFF

[USE-RDC|NO]
opt-set-cmake-var Kokkos_ENABLE_CUDA_RELOCATABLE_DEVICE_CODE BOOL : OFF
Expand Down Expand Up @@ -1879,3 +1880,201 @@ use rhel7_sems-cuda-11.4.2-sems-gnu-10.1.0-sems-openmpi-4.0.5_release_static_Vol
use NODE-TYPE|CUDA_USE-RDC|YES_USE-PT|YES
use USE-RDC|YES
use PACKAGE-ENABLES|ALL
opt-set-cmake-var Trilinos_AUTOGENERATE_TEST_RESOURCE_FILE BOOL : ON
opt-set-cmake-var Trilinos_CUDA_NUM_GPUS STRING : 4
opt-set-cmake-var Trilinos_CUDA_SLOTS_PER_GPU STRING : 2

[rhel7_ascdo-gnu-10.3.0-serial_debug_shared_no-kokkos-arch_no-asan_no-complex_no-fpic_no-mpi_no-pt_no-rdc_no-uvm_deprecated-on_no-package-enables]
use NODE-TYPE|SERIAL
use BUILD-TYPE|DEBUG
use RHEL7_SEMS_LIB-TYPE|SHARED
use KOKKOS-ARCH|NO-KOKKOS-ARCH
use USE-ASAN|NO
use USE-COMPLEX|NO
use USE-FPIC|NO
use USE-MPI|NO
use USE-PT|NO
use USE-RDC|NO
use USE-UVM|NO
use USE-DEPRECATED|YES
use PACKAGE-ENABLES|NO-PACKAGE-ENABLES

opt-set-cmake-var CMAKE_CXX_STANDARD STRING : 17
opt-set-cmake-var Trilinos_ENABLE_TESTS BOOL FORCE : ON

# There is no netcdf available via ascdo
opt-set-cmake-var TPL_ENABLE_Netcdf BOOL : OFF

# PyTrilinos config fails with:
# -- Found NumPy: 1.21.5 (found suitable version "1.21.5", minimum required is "1.0")
# CMake Error at packages/PyTrilinos/CMakeLists.txt:206 (MESSAGE):
# SWIG version 2.0.10 is less than minimum version 3.0.11
opt-set-cmake-var Trilinos_ENABLE_PyTrilinos BOOL : OFF

[rhel7_ascdo-gnu-10.3.0-serial_debug_shared_no-kokkos-arch_no-asan_no-complex_no-fpic_no-mpi_no-pt_no-rdc_no-uvm_deprecated-on_all]
use rhel7_ascdo-gnu-10.3.0-serial_debug_shared_no-kokkos-arch_no-asan_no-complex_no-fpic_no-mpi_no-pt_no-rdc_no-uvm_deprecated-on_no-package-enables
use PACKAGE-ENABLES|ALL

[rhel7_ascdo-gnu-10.3.0-openmp_debug_shared_no-kokkos-arch_no-asan_no-complex_no-fpic_no-mpi_no-pt_no-rdc_no-uvm_deprecated-on_no-package-enables]
use NODE-TYPE|OPENMP
use BUILD-TYPE|DEBUG
use RHEL7_SEMS_LIB-TYPE|SHARED
use KOKKOS-ARCH|NO-KOKKOS-ARCH
use USE-ASAN|NO
use USE-COMPLEX|NO
use USE-FPIC|NO
use USE-MPI|NO
use USE-PT|NO
use USE-RDC|NO
use USE-UVM|NO
use USE-DEPRECATED|YES
use PACKAGE-ENABLES|NO-PACKAGE-ENABLES

opt-set-cmake-var CMAKE_CXX_STANDARD STRING : 17
opt-set-cmake-var Trilinos_ENABLE_TESTS BOOL FORCE : ON

# There is no netcdf available via ascdo
opt-set-cmake-var TPL_ENABLE_Netcdf BOOL : OFF

# PyTrilinos config fails with:
# -- Found NumPy: 1.21.5 (found suitable version "1.21.5", minimum required is "1.0")
# CMake Error at packages/PyTrilinos/CMakeLists.txt:206 (MESSAGE):
# SWIG version 2.0.10 is less than minimum version 3.0.11
opt-set-cmake-var Trilinos_ENABLE_PyTrilinos BOOL : OFF

opt-set-cmake-var CMAKE_GENERATOR STRING : Ninja

[rhel7_ascdo-gnu-10.3.0-openmp_debug_shared_no-kokkos-arch_no-asan_no-complex_no-fpic_no-mpi_no-pt_no-rdc_no-uvm_deprecated-on_all]
use rhel7_ascdo-gnu-10.3.0-openmp_debug_shared_no-kokkos-arch_no-asan_no-complex_no-fpic_no-mpi_no-pt_no-rdc_no-uvm_deprecated-on_no-package-enables
use PACKAGE-ENABLES|ALL

[rhel7_ascdo-gnu-10.3.0-openmpi-4.1.4-serial_debug_shared_no-kokkos-arch_no-asan_no-complex_no-fpic_mpi_no-pt_no-rdc_no-uvm_deprecated-on_no-package-enables]
use NODE-TYPE|SERIAL
use BUILD-TYPE|DEBUG
use RHEL7_SEMS_LIB-TYPE|SHARED
use KOKKOS-ARCH|NO-KOKKOS-ARCH
use USE-ASAN|NO
use USE-COMPLEX|NO
use USE-FPIC|NO
use USE-MPI|YES
use USE-PT|NO
use USE-RDC|NO
use USE-UVM|NO
use USE-DEPRECATED|YES
use PACKAGE-ENABLES|NO-PACKAGE-ENABLES

opt-set-cmake-var CMAKE_CXX_STANDARD STRING : 17
opt-set-cmake-var Trilinos_ENABLE_TESTS BOOL FORCE : ON

# There is no netcdf available via ascdo
opt-set-cmake-var TPL_ENABLE_Netcdf BOOL : OFF

# PyTrilinos config fails with:
# -- Found NumPy: 1.21.5 (found suitable version "1.21.5", minimum required is "1.0")
# CMake Error at packages/PyTrilinos/CMakeLists.txt:206 (MESSAGE):
# SWIG version 2.0.10 is less than minimum version 3.0.11
#opt-set-cmake-var Trilinos_ENABLE_PyTrilinos BOOL : OFF

opt-set-cmake-var CMAKE_GENERATOR STRING : Ninja

[rhel7_ascdo-gnu-10.3.0-openmpi-4.1.4-serial_debug_shared_no-kokkos-arch_no-asan_no-complex_no-fpic_mpi_no-pt_no-rdc_no-uvm_deprecated-on_all]
use rhel7_ascdo-gnu-10.3.0-openmpi-4.1.4-serial_debug_shared_no-kokkos-arch_no-asan_no-complex_no-fpic_mpi_no-pt_no-rdc_no-uvm_deprecated-on_no-package-enables
use PACKAGE-ENABLES|ALL


[rhel7_ascdo-gnu-12.1.0-serial_debug_shared_no-kokkos-arch_no-asan_no-complex_no-fpic_no-mpi_no-pt_no-rdc_no-uvm_deprecated-on_no-package-enables]
use NODE-TYPE|SERIAL
use BUILD-TYPE|DEBUG
use RHEL7_SEMS_LIB-TYPE|SHARED
use KOKKOS-ARCH|NO-KOKKOS-ARCH
use USE-ASAN|NO
use USE-COMPLEX|NO
use USE-FPIC|NO
use USE-MPI|NO
use USE-PT|NO
use USE-RDC|NO
use USE-UVM|NO
use USE-DEPRECATED|YES
use PACKAGE-ENABLES|NO-PACKAGE-ENABLES

opt-set-cmake-var CMAKE_CXX_STANDARD STRING : 17
opt-set-cmake-var Trilinos_ENABLE_TESTS BOOL FORCE : ON

# There is no netcdf available via ascdo
opt-set-cmake-var TPL_ENABLE_Netcdf BOOL : OFF

# PyTrilinos config fails with:
# -- Found NumPy: 1.21.5 (found suitable version "1.21.5", minimum required is "1.0")
# CMake Error at packages/PyTrilinos/CMakeLists.txt:206 (MESSAGE):
# SWIG version 2.0.10 is less than minimum version 3.0.11
opt-set-cmake-var Trilinos_ENABLE_PyTrilinos BOOL : OFF

[rhel7_ascdo-gnu-12.1.0-serial_debug_shared_no-kokkos-arch_no-asan_no-complex_no-fpic_no-mpi_no-pt_no-rdc_no-uvm_deprecated-on_all]
use rhel7_ascdo-gnu-12.1.0-serial_debug_shared_no-kokkos-arch_no-asan_no-complex_no-fpic_no-mpi_no-pt_no-rdc_no-uvm_deprecated-on_no-package-enables
use PACKAGE-ENABLES|ALL

[rhel7_ascdo-gnu-12.1.0-openmp_debug_shared_no-kokkos-arch_no-asan_no-complex_no-fpic_no-mpi_no-pt_no-rdc_no-uvm_deprecated-on_no-package-enables]
use NODE-TYPE|OPENMP
use BUILD-TYPE|DEBUG
use RHEL7_SEMS_LIB-TYPE|SHARED
use KOKKOS-ARCH|NO-KOKKOS-ARCH
use USE-ASAN|NO
use USE-COMPLEX|NO
use USE-FPIC|NO
use USE-MPI|NO
use USE-PT|NO
use USE-RDC|NO
use USE-UVM|NO
use USE-DEPRECATED|YES
use PACKAGE-ENABLES|NO-PACKAGE-ENABLES

opt-set-cmake-var CMAKE_CXX_STANDARD STRING : 17
opt-set-cmake-var Trilinos_ENABLE_TESTS BOOL FORCE : ON

# There is no netcdf available via ascdo
opt-set-cmake-var TPL_ENABLE_Netcdf BOOL : OFF

# PyTrilinos config fails with:
# -- Found NumPy: 1.21.5 (found suitable version "1.21.5", minimum required is "1.0")
# CMake Error at packages/PyTrilinos/CMakeLists.txt:206 (MESSAGE):
# SWIG version 2.0.10 is less than minimum version 3.0.11
opt-set-cmake-var Trilinos_ENABLE_PyTrilinos BOOL : OFF

opt-set-cmake-var CMAKE_GENERATOR STRING : Ninja

[rhel7_ascdo-gnu-12.1.0-openmp_debug_shared_no-kokkos-arch_no-asan_no-complex_no-fpic_no-mpi_no-pt_no-rdc_no-uvm_deprecated-on_all]
use rhel7_ascdo-gnu-12.1.0-openmp_debug_shared_no-kokkos-arch_no-asan_no-complex_no-fpic_no-mpi_no-pt_no-rdc_no-uvm_deprecated-on_no-package-enables
use PACKAGE-ENABLES|ALL

[rhel7_ascdo-gnu-12.1.0-openmpi-4.1.4-serial_debug_shared_no-kokkos-arch_no-asan_no-complex_no-fpic_mpi_no-pt_no-rdc_no-uvm_deprecated-on_no-package-enables]
use NODE-TYPE|SERIAL
use BUILD-TYPE|DEBUG
use RHEL7_SEMS_LIB-TYPE|SHARED
use KOKKOS-ARCH|NO-KOKKOS-ARCH
use USE-ASAN|NO
use USE-COMPLEX|NO
use USE-FPIC|NO
use USE-MPI|YES
use USE-PT|NO
use USE-RDC|NO
use USE-UVM|NO
use USE-DEPRECATED|YES
use PACKAGE-ENABLES|NO-PACKAGE-ENABLES

opt-set-cmake-var CMAKE_CXX_STANDARD STRING : 17
opt-set-cmake-var Trilinos_ENABLE_TESTS BOOL FORCE : ON

# There is no netcdf available via ascdo
opt-set-cmake-var TPL_ENABLE_Netcdf BOOL : OFF

# PyTrilinos config fails with:
# -- Found NumPy: 1.21.5 (found suitable version "1.21.5", minimum required is "1.0")
# CMake Error at packages/PyTrilinos/CMakeLists.txt:206 (MESSAGE):
# SWIG version 2.0.10 is less than minimum version 3.0.11
opt-set-cmake-var Trilinos_ENABLE_PyTrilinos BOOL : OFF

opt-set-cmake-var CMAKE_GENERATOR STRING : Ninja

[rhel7_ascdo-gnu-12.1.0-openmpi-4.1.4-serial_debug_shared_no-kokkos-arch_no-asan_no-complex_no-fpic_mpi_no-pt_no-rdc_no-uvm_deprecated-on_all]
use rhel7_ascdo-gnu-12.1.0-openmpi-4.1.4-serial_debug_shared_no-kokkos-arch_no-asan_no-complex_no-fpic_mpi_no-pt_no-rdc_no-uvm_deprecated-on_no-package-enables
use PACKAGE-ENABLES|ALL
6 changes: 6 additions & 0 deletions packages/framework/ini-files/supported-envs.ini
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,9 @@ sems-cuda-11.4.2-sems-gnu-10.1.0-sems-openmpi-4.0.5:
sems-cuda-11.4.2
sems-intel-2021.3-sems-openmpi-4.0.5:
sems-intel-2021.3
ascdo-gnu-10.3.0-serial
ascdo-gnu-10.3.0-openmp
ascdo-gnu-10.3.0-openmpi-4.1.4-serial
ascdo-gnu-12.1.0-serial
ascdo-gnu-12.1.0-openmp
ascdo-gnu-12.1.0-openmpi-4.1.4-serial
Loading

0 comments on commit 4366811

Please sign in to comment.