Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0f2042c

Browse files
authored
Switch to icpx compiler; Add -ipo flag to the linker (oneapi-src#595)
* Switch to icpx compiler; Add -ipo flag to the linker Signed-off-by: Sergey Kiselev <[email protected]> * Switch to icpx compiler; Add -ipo flag to the linker Signed-off-by: Sergey Kiselev <[email protected]> * Change default target to icpx Signed-off-by: Sergey Kiselev <[email protected]> Co-authored-by: Sergey Kiselev <[email protected]>
1 parent cfb8668 commit 0f2042c

File tree

2 files changed

+6
-6
lines changed
  • DirectProgramming/C++

2 files changed

+6
-6
lines changed

DirectProgramming/C++/CombinationalLogic/MandelbrotOMP/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@
1010
# PURPOSE, NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS.
1111
#
1212
# =============================================================
13-
CXX := icpc
13+
CXX := icpx
1414
SRCDIR := src
1515
BUILDDIR := release
1616
CFLAGS := -O3 -ipo -qopenmp -std=c++11
1717
EXTRA_CFLAGS :=
18-
LIBFLAGS := -qopenmp
18+
LIBFLAGS := -ipo -qopenmp
1919

2020
ifdef perf_num
2121
EXTRA_CFLAGS += -D PERF_NUM
2222
endif
2323

2424
TARGET := $(BUILDDIR)/Mandelbrot
2525

26-
icpc: $(TARGET)
26+
icpx: $(TARGET)
2727

2828
SOURCES := $(wildcard $(SRCDIR)/*.cpp)
2929
OBJECTS := $(patsubst $(SRCDIR)/%,$(BUILDDIR)/%,$(SOURCES:.cpp=.o))

DirectProgramming/C++/GraphTraversal/MergesortOMP/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@
1010
# PURPOSE, NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS.
1111
#
1212
# =============================================================
13-
CXX := icpc
13+
CXX := icpx
1414
SRCDIR := src
1515
BUILDDIR := release
1616
CFLAGS := -O3 -ipo -qopenmp -std=c++11
1717
EXTRA_CFLAGS :=
18-
LIBFLAGS := -qopenmp
18+
LIBFLAGS := -ipo -qopenmp
1919

2020
ifdef perf_num
2121
EXTRA_CFLAGS += -D PERF_NUM
2222
endif
2323

2424
TARGET := $(BUILDDIR)/MergeSort
2525

26-
icpc: $(TARGET)
26+
icpx: $(TARGET)
2727

2828
SOURCES := $(wildcard $(SRCDIR)/*.cpp)
2929
OBJECTS := $(patsubst $(SRCDIR)/%,$(BUILDDIR)/%,$(SOURCES:.cpp=.o))

0 commit comments

Comments
 (0)