Files
rocm-systems/tools/TransferBench/Makefile
T

18 lines
372 B
Makefile
Raw Normal View History

2020-01-15 17:54:27 -07:00
# Copyright (c) 2019-2020 Advanced Micro Devices, Inc. All rights reserved.
2019-08-07 17:21:41 -06:00
HIP_PATH?= $(wildcard /opt/rocm/hip)
ifeq (,$(HIP_PATH))
HIP_PATH=../../..
endif
HIPCC=$(HIP_PATH)/bin/hipcc
EXE=TransferBench
CXXFLAGS = -O3 -I../../src/include -I. -lnuma
2019-08-07 17:21:41 -06:00
all: $(EXE)
$(EXE): $(EXE).cpp $(shell find -regex ".*\.\hpp")
$(HIPCC) $(CXXFLAGS) $< -o $@
clean:
rm -f *.o $(EXE)