CUDA: return -1 for nonexistent compiled arch (llama/15587)

This commit is contained in:
Johannes Gäßler
2025-09-20 13:42:42 +03:00
committed by Georgi Gerganov
parent 1c21a850be
commit 53010199a1
+2 -2
View File
@@ -107,9 +107,9 @@ constexpr bool ggml_cuda_has_arch(const int arch) {
return ggml_cuda_has_arch_impl(arch, __CUDA_ARCH_LIST__);
}
constexpr int ggml_cuda_highest_compiled_arch_impl(const int arch, const int cur) {
constexpr int ggml_cuda_highest_compiled_arch_impl(const int /*arch*/, const int cur) {
if (cur == 0) {
GGML_ABORT("ggml was not compiled with any CUDA arch <= %d", arch);
return -1;
}
return cur;
}