3e62ceddc5
* Adding experimental clique-based kernels (opt-in only) Co-authored-by: Stanley Tsang <stanley.tsang@amd.com> Co-authored-by: Gilbert Lee <gilbert.lee@amd.com> Co-authored-by: Wenkai Du <43822138+wenkaidu@users.noreply.github.com> Co-authored-by: Stanley Tsang <stanley.tsang@amd.com> Co-authored-by: Wenkai Du <43822138+wenkaidu@users.noreply.github.com>
22 satır
474 B
Makefile
22 satır
474 B
Makefile
# Copyright (c) 2020 Advanced Micro Devices, Inc. All rights reserved.
|
|
|
|
# Set to where RCCL is installed
|
|
RCCL_INSTALL=../../build/release
|
|
|
|
HIP_PATH?= $(wildcard /opt/rocm/hip)
|
|
ifeq (,$(HIP_PATH))
|
|
HIP_PATH=../../..
|
|
endif
|
|
HIPCC=$(HIP_PATH)/bin/hipcc
|
|
|
|
EXE=HelloRccl
|
|
CXXFLAGS = -std=c++11 -O3 -I../../src/include -I$(RCCL_INSTALL) -L$(RCCL_INSTALL) -lrccl
|
|
|
|
all: $(EXE)
|
|
|
|
$(EXE): $(EXE).cpp $(shell find -regex ".*\.\hpp")
|
|
$(HIPCC) $(CXXFLAGS) $< -o $@
|
|
|
|
clean:
|
|
rm -f *.o $(EXE)
|