Skip to content

Commit 8f5afa9

Browse files
CUDA: return -1 for nonexistent compiled arch (ggml-org#15587)
1 parent b3964c1 commit 8f5afa9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggml/src/ggml-cuda/common.cuh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ constexpr bool ggml_cuda_has_arch(const int arch) {
107107
return ggml_cuda_has_arch_impl(arch, __CUDA_ARCH_LIST__);
108108
}
109109

110-
constexpr int ggml_cuda_highest_compiled_arch_impl(const int arch, const int cur) {
110+
constexpr int ggml_cuda_highest_compiled_arch_impl(const int /*arch*/, const int cur) {
111111
if (cur == 0) {
112-
GGML_ABORT("ggml was not compiled with any CUDA arch <= %d", arch);
112+
return -1;
113113
}
114114
return cur;
115115
}

0 commit comments

Comments
 (0)