examinimd/miniaero: fix build with kokkos-legacy (#16867)

* examinimd/miniaero: fix build with kokkos-legacy

* flake8
This commit is contained in:
Christoph Junghans 2020-05-29 10:17:55 -06:00 committed by GitHub
parent edd075a5e1
commit 11fc6c5791
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -41,7 +41,8 @@ class Examinimd(MakefilePackage):
def build_targets(self):
targets = []
# Append Kokkos
targets.append('KOKKOS_PATH={0}'.format(self.spec['kokkos'].prefix))
targets.append('KOKKOS_PATH={0}'.format(
self.spec['kokkos-legacy'].prefix))
# Set kokkos device
if 'openmp' in self.spec:
targets.append('KOKKOS_DEVICES=OpenMP')

View File

@ -26,7 +26,8 @@ def build_targets(self):
targets = [
'--directory=kokkos',
'CXX=c++',
'KOKKOS_PATH={0}'.format(self.spec['kokkos'].prefix)
'KOKKOS_PATH={0}'.format(
self.spec['kokkos-legacy'].prefix)
]
return targets