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

18 lines
349 B
Makefile
Raw Normal View History

2016-04-18 10:15:35 +05:30
HIP_PATH?= $(wildcard /opt/rocm/hip)
2016-01-26 20:14:33 -06:00
HIPCC=$(HIP_PATH)/bin/hipcc
all: square.out
2016-01-26 20:14:33 -06:00
# Step
square.cpp:
$(HIP_PATH)/bin/hipify-perl square.cu > square.cpp
2016-01-26 20:14:33 -06:00
square.out: square.cpp
$(HIPCC) $(CXXFLAGS) square.cpp -o $@
2017-04-24 08:50:43 +05:30
# make step to make native cuda app, if on cuda machine
square.cuda.out : square.cu
nvcc square.cu -o $@
2016-01-26 20:14:33 -06:00
clean:
rm -f *.o *.out