Skip to content

Commit 95d06c2

Browse files
slarenpwilkin
authored andcommitted
cuda : avoid initializing unused devices (ggml-org#16510)
1 parent c3e195f commit 95d06c2

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
@@ -3875,7 +3875,6 @@ ggml_backend_reg_t ggml_backend_cuda_reg() {
38753875
dev_ctx->device = i;
38763876
dev_ctx->name = GGML_CUDA_NAME + std::to_string(i);
38773877

3878-
ggml_cuda_set_device(i);
38793878
cudaDeviceProp prop;
38803879
CUDA_CHECK(cudaGetDeviceProperties(&prop, i));
38813880
dev_ctx->description = prop.name;

0 commit comments

Comments
 (0)