ctranslate2: don't set default nvcc arch flags

This fixes a build failure when using cudaPackages_13:

> Unsupported gpu architecture 'compute_53'
This commit is contained in:
Daniel Fullmer
2026-06-28 21:01:16 -07:00
parent bca09b06a5
commit b0208caf82
+7
View File
@@ -51,6 +51,13 @@ stdenv'.mkDerivation (finalAttrs: {
'CMAKE_MINIMUM_REQUIRED(VERSION 3.10 FATAL_ERROR)'
sed -e '1i #include <cstdint>' -i third_party/cxxopts/include/cxxopts.hpp
# Prevent setting the default nvcc arch flags, which can be
# ones that don't work with the current CUDA version
substituteInPlace CMakeLists.txt \
--replace-fail \
'list(APPEND CUDA_NVCC_FLAGS ''${ARCH_FLAGS})' \
""
'';
nativeBuildInputs = [