Skip to content

Commit

Permalink
Add oneDPL for dune-pdelab to use instead of pstl
Browse files Browse the repository at this point in the history
  • Loading branch information
lkeegan committed Nov 2, 2023
1 parent 9ab6ea6 commit d5e7fa9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,24 @@ else
# ls /opt/smelibs
fi

# add dpl
git clone -b cmake_linux_check_exclude_mac --depth 1 https://github.com/lkeegan/oneDPL
cd oneDPL
mkdir build
cd build
cmake -G "Unix Makefiles" .. \
-DCMAKE_OSX_DEPLOYMENT_TARGET="${MACOSX_DEPLOYMENT_TARGET}" \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_C_FLAGS="-fpic -fvisibility=hidden ${TBB_EXTRA_FLAGS}" \
-DCMAKE_CXX_FLAGS="-fpic -fvisibility=hidden ${TBB_EXTRA_FLAGS}" \
-DCMAKE_INSTALL_PREFIX="$INSTALL_PREFIX" \
-DONEDPL_BACKEND="tbb"
make
$SUDOCMD make install
cd ../../


# export vars for duneopts script to read
export DUNE_COPASI_USE_STATIC_DEPS=ON
export CMAKE_INSTALL_PREFIX=$DEPSDIR
Expand Down

0 comments on commit d5e7fa9

Please sign in to comment.