d78649b978
- modified Makefile for hipblas_saxpy to replaced hcblas.so with hipblas.so as part of HCSWAP-100 - Resolved missing separator issue in peer2peer cookbook Makefile Change-Id: I678fea267eee1481f02da09379339ed78d3f95f2
37 строки
436 B
Makefile
37 строки
436 B
Makefile
HIP_PATH?= $(wildcard /opt/rocm/hip)
|
|
ifeq (,$(HIP_PATH))
|
|
HIP_PATH=../../..
|
|
endif
|
|
|
|
HIPCC=$(HIP_PATH)/bin/hipcc
|
|
|
|
TARGET=hcc
|
|
|
|
SOURCES = peer2peer.cpp
|
|
OBJECTS = $(SOURCES:.cpp=.o)
|
|
|
|
EXECUTABLE=./peer2peer
|
|
|
|
.PHONY: test
|
|
|
|
|
|
all: $(EXECUTABLE) test
|
|
|
|
CXXFLAGS =-g
|
|
CXX=$(HIPCC)
|
|
|
|
|
|
$(EXECUTABLE): $(OBJECTS)
|
|
$(HIPCC) $(OBJECTS) -o $@
|
|
|
|
|
|
test: $(EXECUTABLE)
|
|
$(EXECUTABLE)
|
|
|
|
|
|
clean:
|
|
rm -f $(EXECUTABLE)
|
|
rm -f $(OBJECTS)
|
|
rm -f $(HIP_PATH)/src/*.o
|
|
|