08c35854c0
This reverts commit 051c84bba3.
Reason for revert: <INSERT REASONING HERE>
Change-Id: I92ceb171e31026ed1864704cef2fc1497b883ef9
24 строки
499 B
Makefile
24 строки
499 B
Makefile
#Dependencies : [MYHIP]/bin must be in user's 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
|
|
|
|
# Show how to use PLATFORM to specify different options for each compiler:
|
|
ifeq (${HIP_PLATFORM}, nvcc)
|
|
HIPCC_FLAGS = -gencode=arch=compute_20,code=sm_20
|
|
endif
|
|
|
|
EXE=bit_extract
|
|
|
|
$(EXE): bit_extract.cpp
|
|
$(HIPCC) $(HIPCC_FLAGS) $< -o $@
|
|
|
|
all: $(EXE)
|
|
|
|
clean:
|
|
rm -f *.o $(EXE)
|