a44be6655d
Updated default path for hip to ROCM_PATH (/opt/rocm instead of /opt/rocm/hip) as per new/current structure.
[ROCm/rccl commit: 2cb2f9493a]
21 строка
558 B
Makefile
Исполняемый файл
21 строка
558 B
Makefile
Исполняемый файл
# Copyright (c) 2019-2020 Advanced Micro Devices, Inc. All rights reserved.
|
|
HIP_PATH ?= $(wildcard /opt/rocm)
|
|
ifeq (,$(HIP_PATH))
|
|
HIP_PATH = ../../..
|
|
endif
|
|
HIPCC = $(HIP_PATH)/bin/hipcc
|
|
|
|
EXE = ib_test
|
|
CXXFLAGS = -g -O3 -Iinclude -I../../src -I../../src/include -I../../src/clique -DENABLE_TRACE -DRCCL_IB_TEST -ldl -lnuma
|
|
|
|
files = $(EXE).cpp utils.cpp ../../src/transport/net_ib.cc ../../src/misc/ibvwrap.cc ../../src/debug.cc
|
|
|
|
all: $(EXE)
|
|
|
|
$(EXE): $(files)
|
|
$(HIPCC) $(CXXFLAGS) $^ -o $@
|
|
#scp $(EXE) rocm-framework-3:$(shell pwd)
|
|
|
|
clean:
|
|
rm -f *.o $(EXE)
|