diff --git a/.gitignore b/.gitignore index b239bb2..5dad665 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ acc-stream raja-stream kokkos-stream sycl-stream +hip-stream *.o *.tar diff --git a/HIP.make b/HIP.make new file mode 100644 index 0000000..25460fe --- /dev/null +++ b/HIP.make @@ -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 $@