Add HIP.make with CUDA support

Still needs additional work for HIP via HCC.
This commit is contained in:
James Price 2017-02-23 19:19:47 +00:00
parent f90afb1940
commit 13f5c837f6
2 changed files with 14 additions and 0 deletions

1
.gitignore vendored
View File

@ -6,6 +6,7 @@ acc-stream
raja-stream
kokkos-stream
sycl-stream
hip-stream
*.o
*.tar

13
HIP.make Normal file
View File

@ -0,0 +1,13 @@
# 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 $@