diff --git a/Makefile b/Makefile index 730aab9..cfbc084 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,10 @@ else DEFINES += -DPRECISION=2 endif +ifneq ($(ASM_SYNTAX), ATT) + ASFLAGS += -masm=intel +endif + ifneq ($(NEIGHBORS_LOOP_RUNS),) DEFINES += -DNEIGHBORS_LOOP_RUNS=$(NEIGHBORS_LOOP_RUNS) endif @@ -70,7 +74,7 @@ $(BUILD_DIR)/%.o: %.c $(BUILD_DIR)/%.s: %.c $(info ===> GENERATE ASM $@) - $(Q)$(CC) -S $(CPPFLAGS) $(CFLAGS) $< -o $@ + $(Q)$(CC) -S $(ASFLAGS) $(CPPFLAGS) $(CFLAGS) $< -o $@ $(BUILD_DIR)/%.o: %.s $(info ===> ASSEMBLE $@) diff --git a/config.mk b/config.mk index c9ab653..2aaff83 100644 --- a/config.mk +++ b/config.mk @@ -1,18 +1,21 @@ -# Supported: GCC, CLANG, ICC +# Compiler tag (GCC/CLANG/ICC) TAG ?= ICC +# Enable likwid (true or false) ENABLE_LIKWID ?= false # SP or DP DATA_TYPE ?= DP # AOS or SOA DATA_LAYOUT ?= AOS +# Assembly syntax to generate (ATT/INTEL) +ASM_SYNTAX ?= INTEL # Number of times to run the neighbors loop on stubbed variant NEIGHBORS_LOOP_RUNS ?= 1 -# Explicitly store and load atom types +# Explicitly store and load atom types (true or false) EXPLICIT_TYPES ?= false -# Trace memory addresses for cache simulator +# Trace memory addresses for cache simulator (true or false) MEM_TRACER ?= false -# Trace indexes and distances for gather-md +# Trace indexes and distances for gather-md (true or false) INDEX_TRACER ?= false # Vector width (elements) for index and distance tracer VECTOR_WIDTH ?= 8