Files
rocm-systems/samples/0_Intro/square/Makefile
T

22 строки
353 B
Makefile
Исходник Обычный вид История

2016-04-18 10:15:35 +05:30
HIP_PATH?= $(wildcard /opt/rocm/hip)
ifeq (,$(HIP_PATH))
HIP_PATH=../../..
endif
2016-01-26 20:14:33 -06:00
HIPCC=$(HIP_PATH)/bin/hipcc
all: square.hip.out
square.cuda.out : square.cu
nvcc square.cu -o $@
#hipify square.cu > square.cpp
# Then review & finish port in square.cpp
square.hip.out: square.hipref.cpp
$(HIPCC) square.hipref.cpp -o $@
clean:
rm -f *.o *.out