Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions repos/spack_repo/builtin/packages/flecsi/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ class Flecsi(CMakePackage, CudaPackage, ROCmPackage):
depends_on("kokkos", when="+kokkos @2.3:")
depends_on("kokkos", when="@2.4:")
depends_on("kokkos +cuda", when="+kokkos +cuda")
requires("^kokkos +cuda_constexpr +cuda_lambda", when="^kokkos +cuda")
requires("^kokkos +cuda_lambda", when="^kokkos@:4 +cuda")
requires("^kokkos +cuda_constexpr", when="^kokkos +cuda")
depends_on("kokkos +rocm", when="+kokkos +rocm")
depends_on("kokkos +openmp", when="+kokkos +openmp")
requires("+openmp", when="@:2.3 ^kokkos +openmp")
Expand Down Expand Up @@ -143,13 +144,15 @@ def cmake_args(self):
self.define_from_variant("ENABLE_DOCUMENTATION", "doc"),
]

if self.spec.satisfies("^kokkos +rocm"):
if self.spec.satisfies("^kokkos +rocm") and not self.spec.satisfies(
"^kokkos %cxx=llvm-amdgpu"
):
options.append(self.define("CMAKE_CXX_COMPILER", self.spec["hip"].hipcc))
options.append(self.define("CMAKE_C_COMPILER", self.spec["hip"].hipcc))
if self.spec.satisfies("backend=legion"):
# CMake pulled in via find_package(Legion) won't work without this
options.append(self.define("HIP_PATH", "{0}/hip".format(spec["hip"].prefix)))
elif self.spec.satisfies("^kokkos"):
elif self.spec.satisfies("^kokkos +cuda"):
Comment thread
rbberger marked this conversation as resolved.
options.append(self.define("CMAKE_CXX_COMPILER", self["kokkos"].kokkos_cxx))

return options
Loading