BabelStream/HIP.make
James Price 13f5c837f6 Add HIP.make with CUDA support
Still needs additional work for HIP via HCC.
2017-02-23 19:19:47 +00:00

14 lines
267 B
Makefile

# TODO: HIP with HCC
HIPCC = hipcc
ifndef CUDA_PATH
ifeq (,$(wildcard /usr/local/bin/nvcc))
$(error /usr/local/bin/nvcc not found, set CUDA_PATH instead)
endif
endif
hip-stream: main.cpp HIPStream.cu
$(HIPCC) $(CXXFLAGS) -std=c++11 -DHIP $^ $(EXTRA_FLAGS) -o $@