Skip to content
Snippets Groups Projects
Unverified Commit efb456cb authored by Julien Loiseau's avatar Julien Loiseau Committed by GitHub
Browse files

Adding pic support for Kokkos (#17751)

* Adding pic support for Kokkos

* Update pic for kokkos
parent 4e12dc33
No related branches found
No related tags found
No related merge requests found
......@@ -172,6 +172,8 @@ class Kokkos(CMakePackage, CudaPackage):
conflicts("+wrapper", when="~cuda")
variant("std", default="11", values=["11", "14", "17", "20"], multi=False)
variant("pic", default=False, description="Build position independent code")
# nvcc does not currently work with C++17 or C++20
conflicts("+cuda", when="std=17")
conflicts("+cuda", when="std=20")
......@@ -208,6 +210,9 @@ def cmake_args(self):
if isdiy:
options.append("-DSpack_WORKAROUND=On")
if "+pic" in spec:
options.append("-DCMAKE_POSITION_INDEPENDENT_CODE=ON")
spack_microarches = []
if "+cuda" in spec:
# this is a list
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment