Skip to content

Commit 97870e6

Browse files
authored
cuda : avoid initializing unused devices (ggml-org#16510)
1 parent 477a66b commit 97870e6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ggml/src/ggml-cuda/ggml-cuda.cu

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3867,7 +3867,6 @@ ggml_backend_reg_t ggml_backend_cuda_reg() {
38673867
dev_ctx->device = i;
38683868
dev_ctx->name = GGML_CUDA_NAME + std::to_string(i);
38693869

3870-
ggml_cuda_set_device(i);
38713870
cudaDeviceProp prop;
38723871
CUDA_CHECK(cudaGetDeviceProperties(&prop, i));
38733872
dev_ctx->description = prop.name;

0 commit comments

Comments
 (0)