Skip to content

Commit

Permalink
spack: update ports-of-call spackage
Browse files Browse the repository at this point in the history
  • Loading branch information
rbberger committed Sep 30, 2024
1 parent e124ee6 commit 2785cba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spack-repo/packages/ports-of-call/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,9 @@ def cmake_args(self):
]
if self.spec.satisfies("@:1.2.0"):
args.append(self.define_from_variant("PORTABILITY_STRATEGY", "portability_strategy"))
if self.spec.satisfies("test_portability_strategy=Kokkos ^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("test_portability_strategy=Kokkos ^kokkos+cuda"):
args.append(self.define("CMAKE_CXX_COMPILER", self.spec["kokkos"].kokkos_cxx))
return args

0 comments on commit 2785cba

Please sign in to comment.