Fix makefiles in samples

[ROCm/hip commit: bcaefb81fc]
This commit is contained in:
Maneesh Gupta
2016-04-18 10:15:35 +05:30
parent 33e7930669
commit b8cd64dec9
6 changed files with 24 additions and 6 deletions
+4 -1
View File
@@ -1,4 +1,7 @@
HIP_PATH?=../../..
HIP_PATH?= $(wildcard /opt/rocm/hip)
ifeq (,$(HIP_PATH))
HIP_PATH=../../..
endif
HIPCC=$(HIP_PATH)/bin/hipcc
all: square.hip.out