Skip to content

Commit

Permalink
ADIOS2 CI: ~shared
Browse files Browse the repository at this point in the history
Disable to work-around ADIOS 2.6.0 self-referenced dylib issue
with Spack. on macOS.
  • Loading branch information
ax3l committed Jul 29, 2020
1 parent a5c9acc commit b53ed7f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 30 deletions.
35 changes: 19 additions & 16 deletions .github/ci/spack/packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ packages:
[email protected]%[email protected] arch=darwin-mojave-x86_64: /usr
buildable: False
cmake:
version: [3.17.0]
version: [3.12.0]
paths:
cmake@3.17.0%[email protected] arch=linux-ubuntu14-x86_64: /home/travis/.cache/cmake-3.17.0
cmake@3.17.0%[email protected] arch=linux-ubuntu14-x86_64: /home/travis/.cache/cmake-3.17.0
cmake@3.17.0%[email protected] arch=linux-ubuntu14-x86_64: /home/travis/.cache/cmake-3.17.0
cmake@3.17.0%[email protected] arch=linux-ubuntu14-x86_64: /home/travis/.cache/cmake-3.17.0
cmake@3.17.0%[email protected] arch=linux-ubuntu16-x86_64: /home/travis/.cache/cmake-3.17.0
cmake@3.17.0%[email protected] arch=linux-ubuntu18-x86_64: /home/travis/.cache/cmake-3.17.0
cmake@3.17.0%[email protected] arch=linux-ubuntu16-x86_64: /home/travis/.cache/cmake-3.17.0
cmake@3.17.0%[email protected] arch=linux-ubuntu16-x86_64: /home/travis/.cache/cmake-3.17.0
cmake@3.17.0%[email protected] arch=linux-ubuntu16-x86_64: /home/travis/.cache/cmake-3.17.0
cmake@3.17.0%[email protected] arch=linux-ubuntu18-x86_64: /home/travis/.cache/cmake-3.17.0
cmake@3.17.0%[email protected] arch=linux-ubuntu18-x86_64: /home/travis/.cache/cmake-3.17.0
cmake@3.17.0%[email protected] arch=darwin-highsierra-x86_64: /Applications/CMake.app/Contents/
cmake@3.17.0%[email protected] arch=darwin-highsierra-x86_64: /Applications/CMake.app/Contents/
cmake@3.17.0%[email protected] arch=darwin-mojave-x86_64: /Applications/CMake.app/Contents/
cmake@3.12.0%[email protected] arch=linux-ubuntu14-x86_64: /home/travis/.cache/cmake-3.12.0
cmake@3.12.0%[email protected] arch=linux-ubuntu14-x86_64: /home/travis/.cache/cmake-3.12.0
cmake@3.12.0%[email protected] arch=linux-ubuntu14-x86_64: /home/travis/.cache/cmake-3.12.0
cmake@3.12.0%[email protected] arch=linux-ubuntu14-x86_64: /home/travis/.cache/cmake-3.12.0
cmake@3.12.0%[email protected] arch=linux-ubuntu16-x86_64: /home/travis/.cache/cmake-3.12.0
cmake@3.12.0%[email protected] arch=linux-ubuntu18-x86_64: /home/travis/.cache/cmake-3.12.0
cmake@3.12.0%[email protected] arch=linux-ubuntu16-x86_64: /home/travis/.cache/cmake-3.12.0
cmake@3.12.0%[email protected] arch=linux-ubuntu16-x86_64: /home/travis/.cache/cmake-3.12.0
cmake@3.12.0%[email protected] arch=linux-ubuntu16-x86_64: /home/travis/.cache/cmake-3.12.0
cmake@3.12.0%[email protected] arch=linux-ubuntu18-x86_64: /home/travis/.cache/cmake-3.12.0
cmake@3.12.0%[email protected] arch=linux-ubuntu18-x86_64: /home/travis/.cache/cmake-3.12.0
cmake@3.12.0%[email protected] arch=darwin-highsierra-x86_64: /Applications/CMake.app/Contents/
cmake@3.12.0%[email protected] arch=darwin-highsierra-x86_64: /Applications/CMake.app/Contents/
cmake@3.12.0%[email protected] arch=darwin-mojave-x86_64: /Applications/CMake.app/Contents/
buildable: False
openmpi:
version: [1.6.5, 1.10.2, 2.1.1]
Expand All @@ -58,7 +58,10 @@ packages:
adios:
variants: ~zfp ~sz ~lz4 ~blosc
adios2:
variants: ~zfp ~sz ~png ~dataman ~python ~fortran ~ssc
variants: ~zfp ~sz ~png ~dataman ~python ~fortran ~ssc ~shared
# ~shared is a work-around macOS dylib rpath issue for ADIOS2
# https://github.com/ornladios/ADIOS2/issues/2316
# https://spack.readthedocs.io/en/latest/config_yaml.html
python:
version: [3.5.5, 3.6.3, 3.7.1, 3.7.2, 3.8.0]
paths:
Expand Down
24 changes: 10 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cache:
apt: true
directories:
- $HOME/.cache/spack
- $HOME/.cache/cmake-3.17.0
- $HOME/.cache/cmake-3.12.0
- $HOME/.cache/kcov-35
- $HOME/Library/Caches/Homebrew
pip: true
Expand Down Expand Up @@ -664,26 +664,26 @@ install:
fi
# Configured Spack compilers
- spack compilers
# required dependencies - CMake 3.17.0
# required dependencies - CMake 3.12.0
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
if [ ! -f $HOME/.cache/cmake-3.17.0/bin/cmake ]; then
wget -O cmake.sh https://cmake.org/files/v3.17/cmake-3.17.0-Linux-x86_64.sh &&
sh cmake.sh --skip-license --exclude-subdir --prefix=$HOME/.cache/cmake-3.17.0 &&
if [ ! -f $HOME/.cache/cmake-3.12.0/bin/cmake ]; then
wget -O cmake.sh https://cmake.org/files/v3.12/cmake-3.12.0-Linux-x86_64.sh &&
sh cmake.sh --skip-license --exclude-subdir --prefix=$HOME/.cache/cmake-3.12.0 &&
rm cmake.sh;
fi;
spack install cmake@3.17.0 $CXXSPEC;
spack install cmake@3.12.0 $CXXSPEC;
else
if [ ! -d /Applications/CMake.app/Contents/ ]; then
curl -L -s -o cmake.dmg https://cmake.org/files/v3.17/cmake-3.17.0-Darwin-x86_64.dmg &&
curl -L -s -o cmake.dmg https://cmake.org/files/v3.12/cmake-3.12.0-Darwin-x86_64.dmg &&
yes | hdiutil mount cmake.dmg &&
sudo cp -R "/Volumes/cmake-3.17.0-Darwin-x86_64/CMake.app" /Applications &&
sudo cp -R "/Volumes/cmake-3.12.0-Darwin-x86_64/CMake.app" /Applications &&
hdiutil detach /dev/disk1s1 &&
rm cmake.dmg;
fi;
spack install cmake@3.17.0 $CXXSPEC;
spack install cmake@3.12.0 $CXXSPEC;
fi
- spack find cmake
- spack load cmake@3.17.0 $CXXSPEC
- spack load cmake@3.12.0 $CXXSPEC
# diagnostics: modules created and visible?
- module av
- module li
Expand Down Expand Up @@ -749,10 +749,6 @@ install:
spack load adios2$ADIOS2_VERSION $CXXSPEC $SPACK_VAR_MPI;
fi
- spack clean -a
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
ls -hal /Users/travis/.cache/spack/opt/spack/darwin-*/apple-clang-*/adios2-2.6.0-*/lib/*;
otool -l /Users/travis/.cache/spack/opt/spack/darwin-*/apple-clang-*/adios2-2.6.0-*/lib/libadios2_cxx11.2.dylib;
fi

before_cache:
# https://stackoverflow.com/questions/39930171/cache-brew-builds-with-travis-ci
Expand Down

0 comments on commit b53ed7f

Please sign in to comment.