51d64894ff
* [TransferBench] Adding GPU to NUMA distance detection, parsing fixes, config file generation fix * [TransferBench] Fixing up NUMA node detection by filtering pools
18 řádky
413 B
Makefile
18 řádky
413 B
Makefile
# Copyright (c) 2019-2020 Advanced Micro Devices, Inc. All rights reserved.
|
|
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 -L$(HIP_PATH)/../hsa/lib -lhsa-runtime64
|
|
|
|
all: $(EXE)
|
|
|
|
$(EXE): $(EXE).cpp $(shell find -regex ".*\.\hpp")
|
|
$(HIPCC) $(CXXFLAGS) $< -o $@
|
|
|
|
clean:
|
|
rm -f *.o $(EXE)
|