Skip to content

Commit

Permalink
Try building newest dakota instead
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-el committed Jan 23, 2025
1 parent c5370da commit fd62ca8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bundle_with_dakota_caller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ env:
ERT_SHOW_BACKTRACE: 1
NO_PROJECT_RES: 1
BOOST_VERSION: 1.87.0
DAKOTA_VERSION: 6.19.0
DAKOTA_VERSION: 6.21.0
INSTALL_DIR: local
NEEDS_REBUILD: true

Expand Down
48 changes: 27 additions & 21 deletions dakota_manylinux_install_files/build_deps_gha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,30 +80,30 @@ tar xf dakota-$DAKOTA_VERSION-public-src-cli.tar.gz

CAROLINA_DIR=/github/workspace

EIGEN_CMAKE_PATH=dakota-$DAKOTA_VERSION-public-src-cli/packages/external/eigen3/share/eigen3/cmake

# resolve issue where tar (v6.19) could contain corrupt Eigen3Config.cmake file
if [ ! -f $EIGEN_CMAKE_PATH/Eigen3Config.cmake ]; then
mkdir temp_dakota
cd temp_dakota
wget --quiet --no-check-certificate \
https://github.com/snl-dakota/dakota/releases/download/v$DAKOTA_VERSION/dakota-$DAKOTA_VERSION-public-src-cli.zip

# extract file from zip archive only
unzip dakota-$DAKOTA_VERSION-public-src-cli.zip
cp $EIGEN_CMAKE_PATH/Eigen3Config.cmake ..
cd ..
rm -rf temp_dakota

# replace the offending file
rm $EIGEN_CMAKE_PATH/EIGEN3Config.cmake
cp Eigen3Config.cmake $EIGEN_CMAKE_PATH
fi
#EIGEN_CMAKE_PATH=dakota-$DAKOTA_VERSION-public-src-cli/packages/external/eigen3/share/eigen3/cmake

## resolve issue where tar (v6.19) could contain corrupt Eigen3Config.cmake file
#if [ ! -f $EIGEN_CMAKE_PATH/Eigen3Config.cmake ]; then
# mkdir temp_dakota
# cd temp_dakota
# wget --quiet --no-check-certificate \
# https://github.com/snl-dakota/dakota/releases/download/v$DAKOTA_VERSION/dakota-$DAKOTA_VERSION-public-src-cli.zip
#
# # extract file from zip archive only
# unzip dakota-$DAKOTA_VERSION-public-src-cli.zip
# cp $EIGEN_CMAKE_PATH/Eigen3Config.cmake ..
# cd ..
# rm -rf temp_dakota
#
# # replace the offending file
# rm $EIGEN_CMAKE_PATH/EIGEN3Config.cmake
# cp Eigen3Config.cmake $EIGEN_CMAKE_PATH
#fi

cd dakota-$DAKOTA_VERSION-public-src-cli

patch -p1 < $CAROLINA_DIR/dakota_manylinux_install_files/CMakeLists.txt.patch
patch -p1 < $CAROLINA_DIR/dakota_manylinux_install_files/DakotaFindPython.cmake.patch
#patch -p1 < $CAROLINA_DIR/dakota_manylinux_install_files/CMakeLists.txt.patch
#patch -p1 < $CAROLINA_DIR/dakota_manylinux_install_files/DakotaFindPython.cmake.patch

mkdir build
cd build
Expand All @@ -127,7 +127,13 @@ numpy_lib_dir=$(find /tmp/myvenv/ -name numpy.libs)
export LD_LIBRARY_PATH="/usr/lib:/usr/lib64:$INSTALL_DIR/lib:$INSTALL_DIR/bin:$numpy_lib_dir:$NUMPY_INCLUDE_PATH"
export CMAKE_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/::/:/g' | sed 's/:/;/g')
export PYTHON_LIBRARIES="/usr/lib64/"

export PYTHON_INCLUDE_DIR="/opt/_internal/cpython-3.7.17/include/python3.7m"
ll $PYTHON_INCLUDE_DIR
which python3
python3 --version
ll /opt/_internal

export CMAKE_LINK_OPTS="-Wl,--copy-dt-needed-entries,-l pthread"

echo "export BOOST_PYTHON=$BOOST_PYTHON" >> /github/workspace/trace/env
Expand Down

0 comments on commit fd62ca8

Please sign in to comment.