blob: 70ea0ed6c6ce36b42e04f4090860c5e2cd4b95c0 [file] [log] [blame]
EXECUTABLE = mis_hip.gem5
OPTS = -O3
HIP_PATH ?= /opt/rocm/hip
HIPCC = $(HIP_PATH)/bin/hipcc
# these are needed for m5ops
# TODO: Need some sort of explicit PATH? Read in?
GEM5_PATH ?= /nobackup/sinclair/gem5
CFLAGS += -I$(GEM5_PATH)/include -I../graph_parser
LDFLAGS += -L$(GEM5_PATH)/util/m5/build/x86/out -lm5
BIN_DIR ?= ./bin
all: $(BIN_DIR)/$(EXECUTABLE)
$(BIN_DIR)/$(EXECUTABLE): mis.cpp ../graph_parser/parse.cpp ../graph_parser/util.cpp $(BIN_DIR)
$(HIPCC) $(OPTS) --amdgpu-target=gfx801,gfx803 $(CXXFLAGS) mis.cpp ../graph_parser/parse.cpp ../graph_parser/util.cpp -DGEM5_FUSION -o $(BIN_DIR)/$(EXECUTABLE) $(CFLAGS) $(LDFLAGS)
$(BIN_DIR):
mkdir -p $(BIN_DIR)
clean:
rm -rf $(BIN_DIR)
.PHONY: mis clean