Skip to content

Commit

Permalink
spack: update spackage for ats4
Browse files Browse the repository at this point in the history
  • Loading branch information
rbberger committed Sep 24, 2024
1 parent 7c5c6ba commit 16dab33
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 16dab33

Please sign in to comment.