Add HIP.make with CUDA support
Still needs additional work for HIP via HCC.
This commit is contained in:
parent
f90afb1940
commit
13f5c837f6
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,6 +6,7 @@ acc-stream
|
||||
raja-stream
|
||||
kokkos-stream
|
||||
sycl-stream
|
||||
hip-stream
|
||||
|
||||
*.o
|
||||
*.tar
|
||||
|
||||
13
HIP.make
Normal file
13
HIP.make
Normal 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 $@
|
||||
Loading…
Reference in New Issue
Block a user