From b56e1d1f6d1a05fe26323d36728c507b5ce479e0 Mon Sep 17 00:00:00 2001 From: Sreenivasa Murthy Kolam <67086238+srekolam@users.noreply.github.com> Date: Sat, 25 Sep 2021 12:18:44 -0700 Subject: [PATCH] limit the amd_target_sram_ecc to rocm-3.9.0-4.0.0 (#26240) --- var/spack/repos/builtin/packages/rocfft/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/rocfft/package.py b/var/spack/repos/builtin/packages/rocfft/package.py index 1785bcad5c..6cbe146fa7 100644 --- a/var/spack/repos/builtin/packages/rocfft/package.py +++ b/var/spack/repos/builtin/packages/rocfft/package.py @@ -62,7 +62,7 @@ def cmake_args(self): # From version 3.9 and above we have AMDGPU_TARGETS_SRAM_ECC tgt_sram = self.spec.variants['amdgpu_target_sram_ecc'].value - if tgt_sram[0] != 'none' and '@3.9.0:' in self.spec: + if tgt_sram[0] != 'none' and self.spec.satisfies('@3.9.0:4.0.0'): args.append(self.define('AMDGPU_TARGETS_SRAM_ECC', ";".join(tgt_sram))) # See https://github.com/ROCmSoftwarePlatform/rocFFT/issues/322