We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37c35f0 commit 554ccf5Copy full SHA for 554ccf5
1 file changed
ggml/src/ggml-sycl/ggml-sycl.cpp
@@ -1158,12 +1158,11 @@ static const char * ggml_backend_sycl_host_buffer_type_name(ggml_backend_buffer_
1158
}
1159
1160
static void ggml_backend_sycl_host_buffer_free_buffer(ggml_backend_buffer_t buffer) {
1161
- ggml_sycl_host_free(buffer->context);
+ free(buffer->context);
1162
1163
1164
static ggml_backend_buffer_t ggml_backend_sycl_host_buffer_type_alloc_buffer(ggml_backend_buffer_type_t buft, size_t size) {
1165
- void * ptr = ggml_sycl_host_malloc(size);
1166
-
+ void * ptr = aligned_alloc(TENSOR_ALIGNMENT, size);
1167
if (ptr == nullptr) {
1168
// fallback to cpu buffer
1169
return ggml_backend_buft_alloc_buffer(ggml_backend_cpu_buffer_type(), size);
0 commit comments