]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
cuda : avoid initializing unused devices (#16510)
authorDiego Devesa <redacted>
Sat, 11 Oct 2025 11:02:26 +0000 (04:02 -0700)
committerGitHub <redacted>
Sat, 11 Oct 2025 11:02:26 +0000 (13:02 +0200)
ggml/src/ggml-cuda/ggml-cuda.cu

index fb691528b7de48ee686747e85ea34bca5c47f902..856e9de2e1115c339e38ae58aee8d2b947ff5b90 100644 (file)
@@ -3867,7 +3867,6 @@ ggml_backend_reg_t ggml_backend_cuda_reg() {
                 dev_ctx->device = i;
                 dev_ctx->name = GGML_CUDA_NAME + std::to_string(i);
 
-                ggml_cuda_set_device(i);
                 cudaDeviceProp prop;
                 CUDA_CHECK(cudaGetDeviceProperties(&prop, i));
                 dev_ctx->description = prop.name;