aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorkickbutt <kickbutt@yandex-team.com>2024-02-07 20:18:32 +0300
committerAlexander Smirnov <alex@ydb.tech>2024-02-09 19:18:41 +0300
commit504b460a419937f50d9ac53474ff02b9ca7ef2f0 (patch)
treeb70ee8b3321e1a5d769555a9dccc4adfd286195f /build
parentbd8472148c47898b4965c519c6293a24304414ac (diff)
downloadydb-504b460a419937f50d9ac53474ff02b9ca7ef2f0.tar.gz
Remove all remaining checks of auto CUDA support for PPC64 / MacOS
Diffstat (limited to 'build')
-rwxr-xr-xbuild/ymake_conf.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/build/ymake_conf.py b/build/ymake_conf.py
index 7af3da070d..ad8baaca05 100755
--- a/build/ymake_conf.py
+++ b/build/ymake_conf.py
@@ -2341,10 +2341,12 @@ class Cuda(object):
emit('_SRC_CU_CMD', cmd)
emit('_SRC_CU_PEERDIR', ' '.join(sorted(self.peerdirs)))
+ # This method is only used to set HAVE_CUDA=no automatically during ymake initialization
+ # (i.e. is used only in `auto_have_cuda` invocation)
def have_cuda_in_arcadia(self):
host, target = self.build.host_target
- if not any((host.is_linux_x86_64, host.is_macos_x86_64, host.is_windows_x86_64, host.is_linux_powerpc)):
+ if not any((host.is_linux_x86_64, host.is_windows_x86_64)):
return False
if host != target:
@@ -2366,9 +2368,6 @@ class Cuda(object):
return False
if self.build.is_sanitized:
return False
- if self.build.host_target[1].is_macos_x86_64 or self.build.host_target[1].is_macos_arm64:
- # DEVTOOLSSUPPORT-19178 CUDA is rarely needed on Mac. Disable it by default but allow explicit builds with CUDA.
- return False
return self.cuda_root.from_user or self.use_arcadia_cuda.value and self.have_cuda_in_arcadia()
def auto_cuda_version(self):
@@ -2441,8 +2440,6 @@ class Cuda(object):
return select((
(host.is_linux_x86_64 and target.is_linux_x86_64, '$CUDA_HOST_TOOLCHAIN_RESOURCE_GLOBAL/bin/clang'),
(host.is_linux_x86_64 and target.is_linux_armv8, '$CUDA_HOST_TOOLCHAIN_RESOURCE_GLOBAL/bin/clang'),
- (host.is_linux_powerpc and target.is_linux_powerpc, '$CUDA_HOST_TOOLCHAIN_RESOURCE_GLOBAL/bin/clang'),
- (host.is_macos_x86_64 and target.is_macos_x86_64, '$CUDA_HOST_TOOLCHAIN_RESOURCE_GLOBAL/usr/bin/clang'),
))
def cuda_windows_host_compiler(self):