Skip to content

Commit

Permalink
fix missing C++20 STL for ICPX in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
SimeonEhrig authored and psychocoderHPC committed Jul 24, 2024
1 parent d254bcd commit 01d123e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions script/install_oneapi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ then
set +eu
source /opt/intel/oneapi/setvars.sh
set -eu

# Workaround if icpx uses the stdlibc++. The stdlibc++-9 does not support C++20, therefore we install the stdlibc++-11. Clang automatically uses the latest stdlibc++ version.
if [[ "$(cat /etc/os-release)" =~ "20.04" ]] && [ "${alpaka_CXX_STANDARD}" == "20" ];
then
travis_retry sudo apt install -y --no-install-recommends software-properties-common
sudo apt-add-repository ppa:ubuntu-toolchain-r/test -y
travis_retry sudo apt update
travis_retry sudo apt install -y --no-install-recommends g++-11
fi
fi

which "${CXX}"
Expand Down

0 comments on commit 01d123e

Please sign in to comment.