Skip to content

Commit 1962c45

Browse files
let Vc detect icpx as Intel compiler and test it in the CI
1 parent 8ae998c commit 1962c45

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
- name: build-ubuntu-icpc
3636
CXX: icpc
3737
INSTALL_ONEAPI: true
38-
#- name: build-ubuntu-icpx
39-
# CXX: icpx
40-
# INSTALL_ONEAPI: true
38+
- name: build-ubuntu-icpx
39+
CXX: icpx
40+
INSTALL_ONEAPI: true
4141
steps:
4242
- uses: actions/checkout@v2
4343
with:

cmake/VcMacros.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ macro(vc_determine_compiler)
4747
set(Vc_COMPILER_IS_CLANG false)
4848
set(Vc_COMPILER_IS_MSVC false)
4949
set(Vc_COMPILER_IS_GCC false)
50-
if(CMAKE_CXX_COMPILER MATCHES "/(icpc|icc)$")
50+
if(CMAKE_CXX_COMPILER MATCHES "/(icpc|icc|icpcx|icx)$")
5151
set(Vc_COMPILER_IS_INTEL true)
5252
exec_program(${CMAKE_CXX_COMPILER} ARGS -dumpversion OUTPUT_VARIABLE Vc_ICC_VERSION)
5353
message(STATUS "Detected Compiler: Intel ${Vc_ICC_VERSION}")

0 commit comments

Comments
 (0)