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
@@ -1,6 +1,9 @@
#Dependencies : [MYHIP]/bin must be in user's path.
HIP_PATH?=../../..
HIP_PATH?= $(wildcard /opt/rocm/hip)
ifeq (,$(HIP_PATH))
HIP_PATH=../../..
endif
HIP_PLATFORM=$(shell $(HIP_PATH)/bin/hipconfig --platform)
HIPCC=$(HIP_PATH)/bin/hipcc