Update ggml/src/ggml-sycl.cpp

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
This commit is contained in:
Neo Zhang Jianyu 2024-10-23 08:38:42 +08:00 committed by GitHub
parent afb1fd7523
commit 68c838e164
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -499,7 +499,7 @@ ggml_backend_sycl_buffer_type_alloc_buffer(ggml_backend_buffer_type_t buft,
SYCL_CHECK(CHECK_TRY_ERROR(dev_ptr = (void *)sycl::malloc_device(
size, *stream)));
if (!dev_ptr) {
GGML_LOG_ERROR("%s: can't malloc %lu Bytes memory on device", __func__, size);
GGML_LOG_ERROR("%s: can't malloc %lu Bytes memory on device\n", __func__, size);
return nullptr;
}
ggml_backend_sycl_buffer_context * ctx = new ggml_backend_sycl_buffer_context(buft_ctx->device, dev_ptr, buft_ctx->stream);