Use __skip_rocmclang for cmake 3.21 in rocblas/rocfft to avoid incomplete compiler support (#25253)

This commit is contained in:
Harmen Stoppels 2021-08-09 09:03:03 +02:00 committed by GitHub
parent 420113d5ab
commit 4384ff8e41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -106,4 +106,8 @@ def cmake_args(self):
arch = arch + ':xnack-'
args.append(self.define('Tensile_ARCHITECTURE', arch))
# See https://github.com/ROCmSoftwarePlatform/rocBLAS/issues/1196
if self.spec.satisfies('^cmake@3.21:'):
args.append(self.define('__skip_rocmclang', 'ON'))
return args

View File

@ -63,4 +63,8 @@ def cmake_args(self):
if tgt_sram[0] != 'none' and '@3.9.0:' in self.spec:
args.append(self.define('AMDGPU_TARGETS_SRAM_ECC', ";".join(tgt_sram)))
# See https://github.com/ROCmSoftwarePlatform/rocFFT/issues/322
if self.spec.satisfies('^cmake@3.21:'):
args.append(self.define('__skip_rocmclang', 'ON'))
return args