@@ -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
|
||||
|
||||
@@ -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
20
include_ICX.mk
Normal 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 =
|
||||
Reference in New Issue
Block a user