Skip to content

Commit

Permalink
spack: add rocm changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rbberger committed Sep 24, 2024
1 parent 0ff7d9d commit e124ee6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spack-repo/packages/spiner/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,9 @@ def cmake_args(self):
args.append(
self.define("CMAKE_CUDA_ARCHITECTURES", self.spec["kokkos"].variants["cuda_arch"].value)
)
if self.spec.satisfies("^kokkos+rocm"):
args.append(self.define("CMAKE_CXX_COMPILER", self.spec["hip"].hipcc))
args.append(self.define("CMAKE_C_COMPILER", self.spec["hip"].hipcc))
if self.spec.satisfies("^kokkos+cuda"):
args.append(self.define("CMAKE_CXX_COMPILER", self.spec["kokkos"].kokkos_cxx))
return args

0 comments on commit e124ee6

Please sign in to comment.