Merge pull request #4 from Sholde/icx

Add icx target
This commit is contained in:
Jan Eitzinger
2022-12-12 11:37:49 +01:00
committed by GitHub
3 changed files with 30 additions and 10 deletions

View File

@@ -34,7 +34,7 @@ As added benefit the code is a blueprint for a minimal benchmarking application
1. Configure the toolchain and additional options in `config.mk`:
```
# Supported: GCC, CLANG, ICC
# Supported: GCC, CLANG, ICC, ICX
TAG ?= GCC
ENABLE_OPENMP ?= false
ENABLE_LIKWID ?= false

View File

@@ -1,4 +1,4 @@
# Supported: GCC, CLANG, ICC
# Supported: GCC, CLANG, ICC, ICX
TAG ?= ICC
ENABLE_OPENMP ?= true
ENABLE_LIKWID ?= false

20
include_ICX.mk Normal file
View File

@@ -0,0 +1,20 @@
CC = icx
GCC = gcc
LINKER = $(CC)
ifeq ($(ENABLE_OPENMP),true)
OPENMP = -qopenmp
endif
ifeq ($(ENABLE_LTO),true)
FAST_WORKAROUND = -ipo -O3 -static -fp-model=fast
else
FAST_WORKAROUND = -O3 -static -fp-model=fast
endif
VERSION = --version
CFLAGS = $(FAST_WORKAROUND) -xHost -qopt-streaming-stores=always -std=c99 -ffreestanding $(OPENMP)
LFLAGS = $(OPENMP)
DEFINES = -D_GNU_SOURCE
INCLUDES =
LIBS =