Skip to content

Commit

Permalink
Moving spack environment and recipes to thirdPartyLibs; make uberenv …
Browse files Browse the repository at this point in the history
…a submodule
  • Loading branch information
bmhan12 committed Jun 20, 2024
1 parent 8b67dcd commit 8ec5c1a
Show file tree
Hide file tree
Showing 23 changed files with 3,723 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "cmake/blt"]
path = cmake/blt
url = ../../LLNL/blt.git
[submodule "scripts/uberenv"]
path = scripts/uberenv
url = ../../LLNL/uberenv.git
137 changes: 137 additions & 0 deletions scripts/pygeosx_configs/blueos_3_ppc64le_ib_p9/spack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
#------------------------------------------------------------------------------------------------------------
# SPDX-License-Identifier: LGPL-2.1-only
#
# Copyright (c) 2018-2020 Lawrence Livermore National Security LLC
# Copyright (c) 2018-2020 The Board of Trustees of the Leland Stanford Junior University
# Copyright (c) 2018-2020 TotalEnergies
# Copyright (c) 2019- GEOSX Contributors
# All rights reserved
#
# See top level LICENSE, COPYRIGHT, CONTRIBUTORS, NOTICE, and ACKNOWLEDGEMENTS files for details.
#------------------------------------------------------------------------------------------------------------

# %[email protected]
#
# Uberenv command to build pygeosx dependencies:
# python3 ./scripts/uberenv/uberenv.py --spec="%[email protected]" --project-json="scripts/pygeosx_configs/pygeosx.json"

spack:
config:
install_tree:
root: $spack/..
projections:
all: '{compiler.name}-{compiler.version}/{name}-{version}-{hash}'
misc_cache: $spack/../misc_cache
test_stage: $spack/../test_stage
build_stage::
- $spack/../build_stage

view:
default:
root: ../view
projections:
all: '{name}-{version}'

compilers::
- compiler:
spec: [email protected]
paths:
cc: /usr/tce/packages/gcc/gcc-8.3.1/bin/gcc
cxx: /usr/tce/packages/gcc/gcc-8.3.1/bin/g++
f77: /usr/tce/packages/gcc/gcc-8.3.1/bin/gfortran
fc: /usr/tce/packages/gcc/gcc-8.3.1/bin/gfortran
flags:
# Fix for "undefined reference to `_gfortran_transfer_integer_write'"
ldlibs: -lgfortran
operating_system: rhel7
target: ppc64le
modules: []
environment: {}
extra_rpaths: []

packages:
all:
compiler: [gcc]
providers:
mpi: [spectrum-mpi]
blas: [openblas]
lapack: [openblas]

spectrum-mpi:
buildable: False
externals:
- spec: spectrum-mpi@release%[email protected]
prefix: /usr/tce/packages/spectrum-mpi/spectrum-mpi-rolling-release-gcc-8.3.1

cuda:
buildable: False
externals:
- spec: [email protected] +allow-unsupported-compilers
prefix: /usr/tce/packages/cuda/cuda-11.2.0

# System level packages to not build
cmake:
buildable: False
externals:
- spec: [email protected]
prefix: /usr/tce/packages/cmake/cmake-3.21.1
readline:
buildable: False
externals:
- spec: [email protected]
prefix: /collab/usr/gapps/python/build/spack-coralea.3/opt/spack/linux-rhel7-ppc64le/gcc-4.9.3/readline-7.0-owal6z2zh5zotgvdmwow6sgdn6cqfn43/
m4:
buildable: False
externals:
- spec: [email protected]
prefix: /usr
perl:
buildable: false
externals:
- spec: [email protected]
prefix: /usr
pkg-config:
buildable: false
externals:
- spec: [email protected]
prefix: /usr
diffutils:
buildable: False
externals:
- spec: [email protected]
prefix: /usr/bin/
autoconf:
buildable: False
externals:
- spec: [email protected]
prefix: /usr
automake:
buildable: False
externals:
- spec: [email protected]
prefix: /usr
libtool:
buildable: False
externals:
- spec: [email protected]
prefix: /usr
bison:
buildable: False
externals:
- spec: [email protected]
prefix: /usr
flex:
buildable: False
externals:
- spec: [email protected]
prefix: /usr
tk:
buildable: False
externals:
- spec: [email protected]
prefix: /usr
tcl:
buildable: False
externals:
- spec: [email protected]
prefix: /usr
11 changes: 11 additions & 0 deletions scripts/pygeosx_configs/pygeosx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"package_name": "pygeosx",
"package_version": "fakeversion",
"package_final_phase": "",
"package_source_dir": "../..",
"spack_url": "https://github.com/spack/spack",
"spack_commit": "e8658d6493887ef702dd38f0e9ee5870a1651c1e",
"spack_configs_path": "scripts/pygeosx_configs",
"spack_packages_path": "scripts/spack_packages/packages",
"spack_concretizer": "clingo"
}
142 changes: 142 additions & 0 deletions scripts/pygeosx_configs/toss_4_x86_64_ib/spack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
#------------------------------------------------------------------------------------------------------------
# SPDX-License-Identifier: LGPL-2.1-only
#
# Copyright (c) 2018-2020 Lawrence Livermore National Security LLC
# Copyright (c) 2018-2020 The Board of Trustees of the Leland Stanford Junior University
# Copyright (c) 2018-2020 TotalEnergies
# Copyright (c) 2019- GEOSX Contributors
# All rights reserved
#
# See top level LICENSE, COPYRIGHT, CONTRIBUTORS, NOTICE, and ACKNOWLEDGEMENTS files for details.
#------------------------------------------------------------------------------------------------------------

# %[email protected]
#
# Uberenv command to build pygeosx dependencies:
# python3 ./scripts/uberenv/uberenv.py --spec="%[email protected]" --project-json="scripts/pygeosx_configs/pygeosx.json"

spack:
config:
install_tree:
root: $spack/..
projections:
all: '{compiler.name}-{compiler.version}/{name}-{version}-{hash}'
misc_cache: $spack/../misc_cache
test_stage: $spack/../test_stage
build_stage::
- $spack/../build_stage

view:
default:
root: ../view
projections:
all: '{name}-{version}'

compilers::
- compiler:
spec: [email protected]
paths:
cc: /usr/tce/packages/gcc/gcc-10.3.1-magic/bin/gcc
cxx: /usr/tce/packages/gcc/gcc-10.3.1-magic/bin/g++
f77: /usr/tce/packages/gcc/gcc-10.3.1-magic/bin/gfortran
fc: /usr/tce/packages/gcc/gcc-10.3.1-magic/bin/gfortran
operating_system: rhel8
target: x86_64
modules: []
environment: {}
extra_rpaths: []

packages:
all:
target: [ivybridge]
compiler: [clang]
providers:
mpi: [mvapich2]
blas: [intel-oneapi-mkl]
lapack: [intel-oneapi-mkl]

# Lock down which MPI we are using
mvapich2:
buildable: False
externals:
- spec: [email protected]%[email protected]
prefix: /usr/tce/packages/mvapich2/mvapich2-2.3.6-gcc-10.3.1-magic

intel-oneapi-mkl:
externals:
- spec: "[email protected]"
prefix: /opt/intel/oneapi
buildable: False

# System level packages to not build
papi:
buildable: False
externals:
- spec: [email protected]
prefix: /usr/tce/packages/papi/papi-6.0.0.1/
cmake:
version: [3.26.3]
buildable: false
externals:
- spec: [email protected]
prefix: /usr/tce/packages/cmake/cmake-3.26.3
readline:
externals:
- spec: [email protected]
prefix: /collab/usr/gapps/python/build/spack-toss3.3/opt/spack/linux-rhel7-x86_64/gcc-4.9.3/readline-7.0-e5jqqjmcjknidgwvi353pd6umpixzxr2
buildable: false
m4:
buildable: False
externals:
- spec: [email protected]
prefix: /usr
perl:
buildable: false
externals:
- spec: [email protected]
prefix: /usr
pkg-config:
buildable: false
externals:
- spec: [email protected]
prefix: /usr
diffutils:
buildable: False
externals:
- spec: [email protected]
prefix: /usr/bin
autoconf:
buildable: False
externals:
- spec: [email protected]
prefix: /usr
automake:
buildable: False
externals:
- spec: [email protected]
prefix: /usr
libtool:
buildable: False
externals:
- spec: [email protected]
prefix: /usr
bison:
buildable: False
externals:
- spec: [email protected]
prefix: /usr
flex:
buildable: False
externals:
- spec: [email protected]
prefix: /usr
tk:
buildable: False
externals:
- spec: [email protected]
prefix: /usr
tcl:
buildable: False
externals:
- spec: [email protected]
prefix: /usr
Loading

0 comments on commit 8ec5c1a

Please sign in to comment.