vtk-m: support kokkos@4: (#44850)

This commit is contained in:
Vicente Bolea 2024-06-25 01:21:20 -04:00 committed by GitHub
parent 05c7ff4595
commit c4194e4f58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -196,6 +196,9 @@ def cmake_args(self):
# vtk-m detectes tbb via TBB_ROOT env var
os.environ["TBB_ROOT"] = spec["tbb"].prefix
if "+kokkos" in spec and "+rocm" in spec and spec.satisfies("^kokkos@4:"):
options.append(f"-DCMAKE_CXX_COMPILER:BOOL={spec['hip'].prefix.bin.hipcc}")
# Support for relocatable code
if "~shared" in spec and "+fpic" in spec:
options.append("-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON")