Skip to content

Commit

Permalink
Add Fujitsu compiler to build system
Browse files Browse the repository at this point in the history
  • Loading branch information
TomTheBear committed Jun 16, 2021
1 parent 5ac7e84 commit dbe7dee
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,17 @@ OBJ := $(filter-out $(BUILD_DIR)/access_x86_clientmem.o,$(OBJ))
else
OBJ := $(filter-out $(BUILD_DIR)/loadDataARM.o,$(OBJ))
endif
ifeq ($(COMPILER), FCC)
OBJ := $(filter-out $(BUILD_DIR)/topology_cpuid.o,$(OBJ))
OBJ := $(filter-out $(BUILD_DIR)/loadData.o,$(OBJ))
OBJ := $(filter-out $(BUILD_DIR)/access_x86.o,$(OBJ))
OBJ := $(filter-out $(BUILD_DIR)/access_x86_msr.o,$(OBJ))
OBJ := $(filter-out $(BUILD_DIR)/access_x86_pci.o,$(OBJ))
OBJ := $(filter-out $(BUILD_DIR)/access_x86_rdpmc.o,$(OBJ))
OBJ := $(filter-out $(BUILD_DIR)/access_x86_clientmem.o,$(OBJ))
else
OBJ := $(filter-out $(BUILD_DIR)/loadDataARM.o,$(OBJ))
endif
ifeq ($(COMPILER), ARMCLANG)
OBJ := $(filter-out $(BUILD_DIR)/topology_cpuid.o,$(OBJ))
OBJ := $(filter-out $(BUILD_DIR)/loadData.o,$(OBJ))
Expand Down
3 changes: 3 additions & 0 deletions bench/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ endif
ifeq ($(COMPILER),ARMCLANG)
BENCH_DIR = ./armv8
endif
ifeq ($(COMPILER),FCC)
BENCH_DIR = ./armv8
endif
ifeq ($(COMPILER),GCCPOWER)
BENCH_DIR = ./power
endif
Expand Down
5 changes: 4 additions & 1 deletion ext/hwloc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ include $(MAKE_DIR)/include_$(COMPILER).mk
include $(MAKE_DIR)/config_checks.mk
include $(MAKE_DIR)/config_defines.mk

CFLAGS = -O2 -Wall -fPIC -fvisibility=hidden
CFLAGS = -O2 -fPIC -fvisibility=hidden
INCLUDES += -I./include
#DEFINES =
LIBS = -L. -lm
Expand Down Expand Up @@ -42,6 +42,9 @@ endif
ifeq ($(strip $(COMPILER)), ARMCLANG)
OBJ := $(filter-out $(BUILD_DIR)/topology-x86.o, $(OBJ))
endif
ifeq ($(strip $(COMPILER)), FCC)
OBJ := $(filter-out $(BUILD_DIR)/topology-x86.o, $(OBJ))
endif
ifeq ($(COMPILER),GCCPOWER)
OBJ := $(filter-out $(BUILD_DIR)/topology-x86.o,$(OBJ))
endif
Expand Down
34 changes: 34 additions & 0 deletions make/include_FCC.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
CC = fcc
FC = frt
AS = as
AR = ar
PAS = ./perl/AsmGen.pl
GEN_PAS = ./perl/generatePas.pl
GEN_GROUPS = ./perl/generateGroups.pl
GEN_PMHEADER = ./perl/gen_events.pl

ANSI_CFLAGS =
#ANSI_CFLAGS += -pedantic
#ANSI_CFLAGS += -Wextra
#ANSI_CFLAGS += -Wall

CFLAGS = -O2 -std=c99 -fPIC
FCFLAGS = -module ./ # ifort
#FCFLAGS = -J ./ -fsyntax-only #gfortran
PASFLAGS = ARMv8
ASFLAGS =
CPPFLAGS =
LFLAGS = -pthread

SHARED_CFLAGS = -fPIC -fvisibility=hidden
SHARED_LFLAGS = -shared -fvisibility=hidden

DEFINES = -DPAGE_ALIGNMENT=4096
DEFINES += -DLIKWID_MONITOR_LOCK
DEFINES += -DDEBUGLEV=0
DEFINES += -D__ARM_ARCH_8A

INCLUDES =
LIBS = -lm -lrt


0 comments on commit dbe7dee

Please sign in to comment.