trilinos: disable UVM for 13.2+ (#28879)

This commit is contained in:
Seth R. Johnson 2022-02-14 04:54:15 -05:00 committed by GitHub
parent 2c56cbd2bc
commit 3a4ab5f96f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -736,8 +736,10 @@ def define_tpl(trilinos_name, spack_name, have_dep):
else 'OpenMP'), else 'OpenMP'),
]) ])
if '+cuda' in spec: if '+cuda' in spec:
# See https://github.com/spack/spack/issues/28869
use_uvm = (spec.version < Version(13.2))
options.extend([ options.extend([
define_kok_enable('CUDA_UVM', True), define_kok_enable('CUDA_UVM', use_uvm),
define_kok_enable('CUDA_LAMBDA', True), define_kok_enable('CUDA_LAMBDA', True),
define_kok_enable('CUDA_RELOCATABLE_DEVICE_CODE', 'cuda_rdc') define_kok_enable('CUDA_RELOCATABLE_DEVICE_CODE', 'cuda_rdc')
]) ])