From 423a4c8aa21349b4ac31e534d52febab051476fe Mon Sep 17 00:00:00 2001 From: Bernhard Manfred Gruber Date: Tue, 25 Apr 2023 16:01:04 +0200 Subject: [PATCH] Fixed for icpx --- .github/workflows/ci.yaml | 1 + examples/viewcopy/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 422889e84e..a445215122 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -230,6 +230,7 @@ jobs: - name: build-ubuntu-icpx cxx: icpx install_oneapi: true + install_extra: g++-12 # for libstdc++ - name: build-ubuntu-nvc++ cxx: /opt/nvidia/hpc_sdk/Linux_x86_64/22.9/compilers/bin/nvc++ add_nvcpp_repo: true diff --git a/examples/viewcopy/CMakeLists.txt b/examples/viewcopy/CMakeLists.txt index 7a7a8c26f4..a2f3466a3d 100644 --- a/examples/viewcopy/CMakeLists.txt +++ b/examples/viewcopy/CMakeLists.txt @@ -31,6 +31,6 @@ else() target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_20) target_compile_options(${PROJECT_NAME} PRIVATE -march=native) endif() -if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") +if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "IntelLLVM") target_compile_options(${PROJECT_NAME} PRIVATE -fbracket-depth=1500) endif()