limit the amd_target_sram_ecc to rocm-3.9.0-4.0.0 (#26240)

This commit is contained in:
Sreenivasa Murthy Kolam 2021-09-25 12:18:44 -07:00 committed by GitHub
parent b2376db632
commit b56e1d1f6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,7 @@ def cmake_args(self):
# From version 3.9 and above we have AMDGPU_TARGETS_SRAM_ECC # From version 3.9 and above we have AMDGPU_TARGETS_SRAM_ECC
tgt_sram = self.spec.variants['amdgpu_target_sram_ecc'].value 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))) args.append(self.define('AMDGPU_TARGETS_SRAM_ECC', ";".join(tgt_sram)))
# See https://github.com/ROCmSoftwarePlatform/rocFFT/issues/322 # See https://github.com/ROCmSoftwarePlatform/rocFFT/issues/322