Skip to content

Commit cd36767

Browse files
committed
refactor: remove redundant device name assignments in ggml_opencl initialization
1 parent 367fa9c commit cd36767

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

ggml/src/ggml-opencl/ggml-opencl.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -579,14 +579,6 @@ static ggml_backend_opencl_context * ggml_cl2_init(ggml_backend_dev_t dev) {
579579
}
580580
#endif
581581

582-
// Populate backend device name
583-
dev_ctx->platform_name = default_device->platform->name;
584-
dev_ctx->device_name = default_device->name;
585-
backend_ctx->device_name = default_device->name;
586-
587-
// A local ref of cl_device_id for convenience
588-
cl_device_id device = backend_ctx->device;
589-
590582
ggml_cl_version platform_version = get_opencl_platform_version(default_device->platform->id);
591583

592584
// Check device OpenCL version, OpenCL 2.0 or above is required

0 commit comments

Comments
 (0)