Skip to content

Commit

Permalink
Add support for Intel DPC++/C++ compiler (ICX) on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
saprykin committed Sep 10, 2023
1 parent 3c33bf0 commit 85560d9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/PlatformDetect.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ function (plibsys_detect_c_compiler result)
set (PLIBSYS_C_COMPILER icc)
endif()

# Rename intelllvm -> icx
if (PLIBSYS_C_COMPILER STREQUAL intelllvm)
set (PLIBSYS_C_COMPILER icx)
endif()

# Rename openwatcom -> watcom
if (PLIBSYS_C_COMPILER STREQUAL openwatcom)
set (PLIBSYS_C_COMPILER watcom)
Expand Down
12 changes: 12 additions & 0 deletions platforms/linux-icx/platform.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
set (PLIBSYS_THREAD_MODEL posix)
set (PLIBSYS_IPC_MODEL posix)
set (PLIBSYS_TIME_PROFILER_MODEL posix)
set (PLIBSYS_DIR_MODEL posix)
set (PLIBSYS_LIBRARYLOADER_MODEL posix)

set (PLIBSYS_PLATFORM_LINK_LIBRARIES -pthread rt dl imf svml irng intlc)

set (PLIBSYS_PLATFORM_DEFINES
-D_REENTRANT
-D_GNU_SOURCE
)

0 comments on commit 85560d9

Please sign in to comment.