cuda : avoid initializing unused devices (llama/16510)

This commit is contained in:
Diego Devesa 2025-10-11 04:02:26 -07:00 committed by Georgi Gerganov
parent d8f1aa4e1d
commit 1cc342427b
1 changed files with 0 additions and 1 deletions

View 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;