We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bfcc85 commit 64cc19bCopy full SHA for 64cc19b
ggml-cuda.cu
@@ -2366,7 +2366,7 @@ void ggml_cuda_assign_buffers_no_scratch(struct ggml_tensor * tensor) {
2366
}
2367
2368
void ggml_cuda_set_main_device(int main_device) {
2369
- if (main_device > g_device_count) {
+ if (main_device >= g_device_count) {
2370
fprintf(stderr, "warning: cannot set main_device=%d because there are only %d devices. Using device %d instead.\n",
2371
main_device, g_device_count, g_main_device);
2372
return;
0 commit comments