added workaround for rocm/cmake bug in tasmanian (#25949)

This commit is contained in:
Miroslav Stoyanov 2021-09-27 14:14:21 -04:00 committed by GitHub
parent c592e17d49
commit 5130f43eb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -140,6 +140,10 @@ def cmake_args(self):
args.append('-DPYTHON_EXECUTABLE:FILEPATH={0}'.format(
self.spec['python'].command.path))
# See https://github.com/ROCmSoftwarePlatform/rocFFT/issues/322
if self.spec.satisfies('+rocm') and self.spec.satisfies('^cmake@3.21:'):
args.append(self.define('__skip_rocmclang', 'ON'))
# _CUBLAS and _CUDA were separate options prior to 6.0
# skipping _CUBLAS leads to peformance regression
if spec.satisfies('@:5.1'):