Files
rocm-systems/projects/hip-tests/samples/0_Intro/square/Makefile
T
Ben Sander 868fee2a78 Use HIP_PATH if set else use relative ../...
[ROCm/hip-tests commit: ac798c2997]
2016-04-08 02:17:29 -05:00

19 lines
290 B
Makefile

HIP_PATH?=../../..
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