Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ubuntu 22.04 LTS spack config #45

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions cmake/TribolConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ message(STATUS "Configuring Tribol version ${TRIBOL_VERSION_FULL}")
#------------------------------------------------------------------------------
# General Build Info
#------------------------------------------------------------------------------
convert_to_native_escaped_file_path(${PROJECT_SOURCE_DIR} TRIBOL_REPO_DIR)
convert_to_native_escaped_file_path(${CMAKE_BINARY_DIR} TRIBOL_BIN_DIR)

# Generate and install config header
tribol_configure_file(${PROJECT_SOURCE_DIR}/src/tribol/config.hpp.in
${PROJECT_BINARY_DIR}/include/tribol/config.hpp)

install(FILES ${PROJECT_BINARY_DIR}/include/tribol/config.hpp DESTINATION include/tribol)

# Set up some paths, preserve existing cache values (if present)
Expand Down
16 changes: 16 additions & 0 deletions scripts/spack/configs/linux_ubuntu_22/compilers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
compilers:
- compiler:
spec: [email protected]
paths:
cc: /usr/bin/gcc
cxx: /usr/bin/g++
f77: /usr/bin/gfortran
fc: /usr/bin/gfortran
flags:
cflags: -pthread
cxxflags: -pthread
operating_system: ubuntu22.04
target: x86_64
modules: []
environment: {}
extra_rpaths: []
125 changes: 125 additions & 0 deletions scripts/spack/configs/linux_ubuntu_22/packages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
packages:
all:
target: [ivybridge]
compiler: [gcc]
providers:
mpi: [mpich]
blas: [openblas]
lapack: [openblas]
gl: [opengl]
glu: [openglu]

# Lock down which MPI we are using
mpi:
buildable: false
mpich:
externals:
- spec: [email protected]%gcc
prefix: /usr

# System level packages to not build
cuda:
buildable: false
externals:
- spec: [email protected]
prefix: /usr/local/cuda
opengl:
buildable: false
externals:
- spec: [email protected]
prefix: /usr
openglu:
buildable: false
externals:
- spec: [email protected]
prefix: /usr
bzip2:
buildable: false
externals:
- spec: [email protected]
prefix: /
gettext:
buildable: false
externals:
- spec: [email protected]
prefix: /usr
perl:
buildable: false
externals:
- spec: [email protected]
prefix: /usr
tar:
buildable: false
externals:
- spec: [email protected]
prefix: /
libx11:
buildable: false
externals:
- spec: [email protected]
prefix: /usr
autoconf:
buildable: false
externals:
- spec: [email protected]
prefix: /usr
openssl:
externals:
- spec: [email protected]
prefix: /usr/lib/x86_64-linux-gnu/
openblas:
buildable: false
externals:
- spec: [email protected]
prefix: /usr/lib/x86_64-linux-gnu/
pkg-config:
buildable: false
externals:
- spec: [email protected]
prefix: /usr
unzip:
buildable: false
externals:
- spec: [email protected]
prefix: /usr
zlib:
buildable: false
externals:
- spec: [email protected]
prefix: /usr
m4:
buildable: false
externals:
- spec: [email protected]
prefix: /usr

# Lock in versions of Devtools
cmake:
buildable: false
externals:
- spec: [email protected]
prefix: /usr
doxygen:
version: [1.8.17]
buildable: false
externals:
- spec: [email protected]
prefix: /usr
llvm:
version: [10.0.0]
buildable: false
externals:
- spec: [email protected]+clang
prefix: /usr
python:
version: [3.8.5]
buildable: false
externals:
- spec: [email protected]
prefix: /usr
py-sphinx:
version: [3.2.1]
buildable: false
externals:
- spec: [email protected]
prefix: /usr
7 changes: 7 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,10 @@ endif()
if ( TRIBOL_ENABLE_EXAMPLES )
add_subdirectory(examples)
endif()

# Generate and install config header
convert_to_native_escaped_file_path(${PROJECT_SOURCE_DIR} TRIBOL_REPO_DIR)
convert_to_native_escaped_file_path(${CMAKE_BINARY_DIR} TRIBOL_BIN_DIR)

tribol_configure_file(${PROJECT_SOURCE_DIR}/src/tribol/config.hpp.in
${PROJECT_BINARY_DIR}/include/tribol/config.hpp)