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

update uberenv and related configs #1164

Merged
merged 40 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
e4d1504
wip: update uberenv and related configs
cyrush Aug 30, 2023
afae9c5
add missing file
cyrush Aug 30, 2023
4f6b764
update to use ub with fix
cyrush Aug 30, 2023
7d3d517
fix editor undermine
cyrush Aug 30, 2023
9f5f4f2
recipe woes, try newer spack (bleeding edge)
cyrush Aug 31, 2023
cd0d64b
avoid system hdf5
cyrush Aug 31, 2023
1d8a1d3
fix for mult externals
cyrush Aug 31, 2023
c692109
build the world
cyrush Aug 31, 2023
27b697f
no more python 2 :-( back to spack v0.21.0 release
cyrush Aug 31, 2023
24793bb
fix for more complex specs
cyrush Sep 1, 2023
2fe7cf1
try python view path fix
cyrush Sep 1, 2023
bbf0df4
updates
cyrush Sep 1, 2023
25cc2a8
Merge branch 'develop' into task/2023_08_uberenv_update
cyrush Sep 1, 2023
30be050
path fix
cyrush Sep 2, 2023
82b87f5
spack build mpi is sad
cyrush Sep 2, 2023
93d2c52
typo
cyrush Sep 2, 2023
afb575a
fix
cyrush Sep 2, 2023
ddea993
one bite at a time
cyrush Sep 2, 2023
4337ab7
docker recipe fix
cyrush Sep 3, 2023
2882b0a
python path fix needed for standalone
cyrush Sep 3, 2023
bc4d8f4
...
cyrush Sep 3, 2023
5cad30a
docker use spack env file (spack built mpi does not work)
cyrush Sep 4, 2023
0788ac0
ub env use external lapack
cyrush Sep 5, 2023
491b024
yaml vs cyrus
cyrush Sep 5, 2023
bd33e05
docs updates
cyrush Sep 5, 2023
a741515
more docs updates
cyrush Sep 5, 2023
b679b86
fix config
cyrush Sep 6, 2023
b361570
side quest to get docs working
cyrush Sep 6, 2023
0685d88
upate
cyrush Sep 6, 2023
276e919
different strategy
cyrush Sep 7, 2023
a70dd79
add new cfg
cyrush Oct 12, 2023
d77d78c
heal rtd settings
cyrush Oct 12, 2023
b65c4e1
Merge branch 'develop' into task/2023_08_uberenv_update
cyrush Nov 2, 2023
5fe8b54
updates
cyrush Nov 4, 2023
a9e0bfa
Merge branch 'task/2023_08_uberenv_update' of github.com:LLNL/conduit…
cyrush Nov 4, 2023
2414cf0
Merge branch 'develop' into task/2023_08_uberenv_update
cyrush Nov 4, 2023
ebc19fa
update uberenv
cyrush Nov 6, 2023
1335578
fix ci test python path loc
cyrush Nov 7, 2023
2286a5a
more path adj
cyrush Nov 7, 2023
3832b29
more fun
cyrush Nov 7, 2023
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
1 change: 1 addition & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ sphinx:
python:
install:
- requirements: src/docs/sphinx/requirements.txt

26 changes: 7 additions & 19 deletions .uberenv_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,12 @@
"spack_build_mode" : "uberenv-pkg",
"spack_configs_path": "scripts/uberenv_configs/spack_configs",
"spack_packages_path": "scripts/uberenv_configs/packages",
"spack_skip_externals": "true",
"spack_url": "https://github.com/spack/spack",
"spack_commit": "6983d520fa64d8c7343dcc627197b0e6c621d1a6",
"spack_activate" : {"py-numpy" : ["+python"],
"py-sphinx": ["+python","+doc"],
"py-docutils": ["+python","+doc"],
"py-pygments": ["+python","+doc"],
"py-babel": ["+python","+doc"],
"py-jinja2": ["+python","+doc"],
"py-packaging": ["+python","+doc"],
"py-snowballstemmer": ["+python","+doc"],
"py-imagesize": ["+python","+doc"],
"py-sphinxcontrib-htmlhelp": ["+python","+doc"],
"py-sphinxcontrib-serializinghtml": ["+python","+doc"],
"py-sphinxcontrib-applehelp": ["+python","+doc"],
"py-sphinxcontrib-devhelp": ["+python","+doc"],
"py-sphinxcontrib-qthelp": ["+python","+doc"],
"py-alabaster": ["+python","+doc"],
"py-requests": ["+python","+doc"],
"py-mpi4py" : ["+python", "+mpi"],
"py-sphinx-rtd-theme": ["+python","+doc"] }
"spack_commit": "6812713cf470b473a607f0de0e8e1cf53f804fb7",
"spack_host_config_patches":
{
"PYTHON_EXECUTABLE": "spack_view/bin/python3",
"SPHINX_EXECUTABLE": "spack_view/bin/sphinx-build"
}
}
82 changes: 23 additions & 59 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,40 +79,11 @@ stages:
ENABLE_ADIOS: OFF
ENABLE_PARMETIS: OFF
ENABLE_PYTHON: OFF
ENABLE_PYTHON2: OFF
CMAKE_VERSION: 3.14.2
BLT_CXX_STD: c++11
BLT_ENABLE_FIND_MPI: ON

ub_18_shared_py27_cmake_3_14:
containerImage: ${{ variables.ubuntu_18_tag }}
COMPILER_CC: gcc
COMPILER_CXX: g++
COMPILER_FC: gfortran
COMPILER_SPEC: gcc
FORCE_COMPILERS: OFF
BUILD_SHARED_LIBS: ON
CMAKE_BUILD_TYPE: Debug
ENABLE_COVERAGE: ON
ENABLE_MPI: ON
ENABLE_DOCS: OFF
ENABLE_RELAY_WEBSERVER: ON
ENABLE_OPENMP: ON
ENABLE_HDF5: ON
ENABLE_HDF5_COMPAT: ON
HDF5_SPEC: "hdf5~mpi"
ENABLE_SILO: ON
ENABLE_ADIOS: OFF
ENABLE_PYTHON: ON
ENABLE_PARMETIS: ON
ENABLE_PYTHON2: ON
PYTHON2_CONSTRAINTS: " ^[email protected] ^[email protected]"
PYTHON_VERSION: 2.7.18
CMAKE_VERSION: 3.14.2
BLT_CXX_STD: c++11
BLT_ENABLE_FIND_MPI: ON

ub_18_static_py27_cmake_3_14:
ub_18_static_py37_cmake_3_14:
containerImage: ${{ variables.ubuntu_18_tag }}
COMPILER_CC: gcc
COMPILER_CXX: g++
Expand All @@ -133,9 +104,7 @@ stages:
ENABLE_ADIOS: OFF
ENABLE_PARMETIS: ON
ENABLE_PYTHON: ON
ENABLE_PYTHON2: ON
PYTHON2_CONSTRAINTS: " ^[email protected] ^[email protected]"
PYTHON_VERSION: 2.7.18
PYTHON_VERSION: 3.7.16
CMAKE_VERSION: 3.14.2
BLT_CXX_STD: c++11
BLT_ENABLE_FIND_MPI: ON
Expand All @@ -161,8 +130,7 @@ stages:
ENABLE_ADIOS: OFF
ENABLE_PARMETIS: ON
ENABLE_PYTHON: ON
ENABLE_PYTHON2: OFF
PYTHON_VERSION: 3.7.6
PYTHON_VERSION: 3.7.16
CMAKE_VERSION: 3.14.2
BLT_CXX_STD: c++11
BLT_ENABLE_FIND_MPI: ON
Expand All @@ -188,8 +156,7 @@ stages:
ENABLE_ADIOS: OFF
ENABLE_PARMETIS: ON
ENABLE_PYTHON: ON
ENABLE_PYTHON2: OFF
PYTHON_VERSION: 3.8.8
PYTHON_VERSION: 3.8.16
CMAKE_VERSION: 3.21.1
BLT_CXX_STD: c++11
BLT_ENABLE_FIND_MPI: ON
Expand All @@ -215,8 +182,7 @@ stages:
ENABLE_ADIOS: OFF
ENABLE_PARMETIS: ON
ENABLE_PYTHON: ON
ENABLE_PYTHON2: OFF
PYTHON_VERSION: 3.8.8
PYTHON_VERSION: 3.8.16
CMAKE_VERSION: 3.21.1
BLT_CXX_STD: c++11
BLT_ENABLE_FIND_MPI: ON
Expand Down Expand Up @@ -244,8 +210,7 @@ stages:
ENABLE_ADIOS: OFF
ENABLE_PARMETIS: ON
ENABLE_PYTHON: ON
ENABLE_PYTHON2: OFF
PYTHON_VERSION: 3.8.8
PYTHON_VERSION: 3.8.16
CMAKE_VERSION: 3.20.0
BLT_CXX_STD: c++11
BLT_ENABLE_FIND_MPI: ON
Expand Down Expand Up @@ -273,8 +238,7 @@ stages:
ENABLE_ADIOS: OFF
ENABLE_PARMETIS: ON
ENABLE_PYTHON: ON
ENABLE_PYTHON2: OFF
PYTHON_VERSION: 3.10.6
PYTHON_VERSION: 3.10.10
CMAKE_VERSION: 3.24.2
BLT_CXX_STD: c++11
BLT_ENABLE_FIND_MPI: ON
Expand Down Expand Up @@ -302,8 +266,7 @@ stages:
ENABLE_ADIOS: OFF
ENABLE_PARMETIS: ON
ENABLE_PYTHON: ON
ENABLE_PYTHON2: OFF
PYTHON_VERSION: 3.10.6
PYTHON_VERSION: 3.10.10
CMAKE_VERSION: 3.26.0
BLT_CXX_STD: c++11
BLT_ENABLE_FIND_MPI: ON
Expand Down Expand Up @@ -332,7 +295,6 @@ stages:
# ENABLE_ADIOS: OFF
# ENABLE_PARMETIS: ON
# ENABLE_PYTHON: ON
# ENABLE_PYTHON2: OFF
# PYTHON_VERSION: 3.11.2
# CMAKE_VERSION: 3.26.0
# BLT_CXX_STD: c++11
Expand Down Expand Up @@ -383,8 +345,7 @@ stages:
ENABLE_ADIOS: OFF
ENABLE_PARMETIS: ON
ENABLE_PYTHON: ON
ENABLE_PYTHON2: OFF
PYTHON_VERSION: 3.8.8
PYTHON_VERSION: 3.8.16
CMAKE_VERSION: 3.21.1
BLT_CXX_STD: c++11
BLT_ENABLE_FIND_MPI: ON
Expand Down Expand Up @@ -443,7 +404,6 @@ stages:
export SPACK_SPEC="${SPACK_SPEC} ^cmake@${CMAKE_VERSION}"
# python constraints
if [ $ENABLE_PYTHON = 'ON' ]; then export SPACK_SPEC="${SPACK_SPEC} ^python@${PYTHON_VERSION}"; fi
if [ $ENABLE_PYTHON2 = 'ON' ]; then export SPACK_SPEC="${SPACK_SPEC} ${PYTHON2_CONSTRAINTS}"; fi
# hdf5 constraints
if [ $ENABLE_HDF5 = 'ON' ]; then export SPACK_SPEC="${SPACK_SPEC} ^${HDF5_SPEC}"; fi
# silo constraints
Expand All @@ -452,7 +412,7 @@ stages:
echo "SPACK SPEC:"
echo $SPACK_SPEC
# run uber to build tpls
python3 scripts/uberenv/uberenv.py -k --spack-allow-deprecated --spec "${SPACK_SPEC}" --spack-config-dir=scripts/uberenv_configs/spack_configs/configs/alpinedav/ubuntu_18.04_devel/
python3 scripts/uberenv/uberenv.py -k --spec "${SPACK_SPEC}" --spack-env-file=scripts/uberenv_configs/spack_configs/envs/alpinedav-ubuntu_18.04_devel/spack.yaml
displayName: 'Spack Build Tpls'

- script: |
Expand All @@ -467,25 +427,22 @@ stages:
# capture current path
export ROOT_DIR=`pwd`
# find spack generated host config file
export HOST_CONFIG=`ls ${ROOT_DIR}/uberenv_libs/*.cmake`
export HOST_CONFIG=`ls ${ROOT_DIR}/uberenv_libs/*-patch.cmake`
echo $HOST_CONFIG
# find spack installed cmake
export CMAKE_BIN_DIR=`ls -d ${ROOT_DIR}/uberenv_libs/spack/opt/spack/*/*/cmake*/bin`
export PATH=${CMAKE_BIN_DIR}:$PATH
echo $PATH
which cmake
cmake --version
# prepare build dir
mkdir build
cd build
# setup cmake options
export CMAKE_OPTS="-C ${HOST_CONFIG}"
export CMAKE_OPTS="${CMAKE_OPTS} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}"
export CMAKE_OPTS="${CMAKE_OPTS} -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}"
export CMAKE_OPTS="${CMAKE_OPTS} -DENABLE_COVERAGE=${ENABLE_COVERAGE}"
export CMAKE_OPTS="${CMAKE_OPTS} -DBLT_CXX_STD=${BLT_CXX_STD}"
export CMAKE_OPTS="${CMAKE_OPTS} -DENABLE_FIND_MPI=${BLT_ENABLE_FIND_MPI}"
export CMAKE_OPTS="${CMAKE_OPTS} -DCMAKE_INSTALL_PREFIX=../install"
export CMAKE_OPTS="${CMAKE_OPTS} -DCMAKE_INSTALL_PREFIX=${ROOT_DIR}/install"
# this is now getting set to the uberenv-pkg loc by spack, ignore for ci
export CMAKE_OPTS="${CMAKE_OPTS} -DPYTHON_MODULE_INSTALL_PREFIX=IGNORE"
if [ $FORCE_COMPILERS = 'ON' ]; then export CMAKE_OPTS="${CMAKE_OPTS} -DCMAKE_C_COMPILER=${COMPILER_CC}"; fi
Expand All @@ -495,7 +452,7 @@ stages:
# configure
echo "CMAKE OPTIONS:"
echo ${CMAKE_OPTS}
cmake ${CMAKE_OPTS} ../src
cmake ${CMAKE_OPTS} -B build -S src
displayName: 'Configure with CMake'

- script: |
Expand Down Expand Up @@ -648,13 +605,20 @@ stages:
ls -l
# find spack installed cmake
export ROOT_DIR=`pwd`
export CMAKE_BIN_DIR=`ls -d ${ROOT_DIR}/uberenv_libs/spack/opt/spack/*/*/cmake*/bin`
export CMAKE_BIN_DIR=`ls -d ${ROOT_DIR}/uberenv_libs/spack/opt/spack/*/*/cmake*/bin/`
export PATH=${CMAKE_BIN_DIR}:$PATH
echo $PATH
# find spack installed python
export PYTHON_EXE=`ls -d ${ROOT_DIR}/uberenv_libs/spack/opt/spack/*/*/python*/bin/python`
# find spack installed python (use spack view dir)
export PYTHON_EXE=`ls ${ROOT_DIR}/uberenv_libs/spack_view/bin/python3`
# add conduit module to python path
export PYTHONPATH=${ROOT_DIR}/install/python-modules/
# NOTE:
# also add spack's python view dir to python path env var
# this wasn't needed with older spack.
# I think embedded linking logic is resolving symlinks and therefore
# not using view layout that wires up dependent python modules
py_site_pkgs_dir=`ls -d ${ROOT_DIR}/uberenv_libs/spack_view/lib/python*/site-packages`
export PYTHONPATH=${PYTHONPATH}:${py_site_pkgs_dir}
echo $PYTHONPATH
# CI LD_LIB FIX
# NOTE:
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading