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

28 rivejä
555 B
Makefile
Raaka Normaali näkymä Historia

2016-01-26 20:14:33 -06:00
#Dependencies : [MYHIP]/bin must be in user's path.
2016-04-18 10:15:35 +05:30
HIP_PATH?= $(wildcard /opt/rocm/hip)
ifeq (,$(HIP_PATH))
HIP_PATH=../../..
endif
2016-01-26 20:14:33 -06:00
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
ifeq (${HIP_PLATFORM}, hcc)
2016-05-20 10:15:33 +05:30
HIPCC_FLAGS = -stdlib=libc++
2016-01-26 20:14:33 -06:00
endif
EXE=bit_extract
$(EXE): bit_extract.cpp
$(HIPCC) $(HIPCC_FLAGS) $< -o $@
clean:
rm -f *.o $(EXE)