Skip to content

Commit

Permalink
SYCL: reg_get_proc_address func, update to the current func signature
Browse files Browse the repository at this point in the history
  • Loading branch information
qnixsynapse committed Dec 18, 2024
1 parent 82ce602 commit a20dde3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ggml/src/ggml-sycl/ggml-sycl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4639,10 +4639,9 @@ static ggml_backend_dev_t ggml_backend_sycl_reg_get_device(ggml_backend_reg_t re
static void *ggml_backend_sycl_reg_get_proc_address(ggml_backend_reg_t reg, const char *name) {
GGML_UNUSED(reg);

// TODO: update to the current function signature
//if (strcmp(name, "ggml_backend_split_buffer_type") == 0) {
// return (void *)ggml_backend_sycl_split_buffer_type;
//}
if (strcmp(name, "ggml_backend_split_buffer_type") == 0) {
return (void *)ggml_backend_sycl_split_buffer_type;
}

// SYCL doesn't support registering host memory, left here for reference
// "ggml_backend_register_host_buffer"
Expand Down

0 comments on commit a20dde3

Please sign in to comment.