File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -432,7 +432,6 @@ static const char * ggml_backend_webgpu_name(ggml_backend_t backend) {
432432static void ggml_backend_webgpu_free (ggml_backend_t backend) {
433433 ggml_backend_webgpu_context * ctx = (ggml_backend_webgpu_context *) backend->context ;
434434 WEBGPU_LOG_DEBUG (" ggml_backend_webgpu_free(" << ctx->name << " )" );
435- std::cout << " ggml_backend_webgpu_free(" << ctx->name << " )" << std::endl;
436435
437436 // TODO: cleanup
438437 GGML_UNUSED (ctx);
@@ -824,7 +823,7 @@ static ggml_backend_buffer_t ggml_backend_webgpu_buffer_type_alloc_buffer(ggml_b
824823 wgpu::Buffer buf;
825824 ggml_webgpu_create_buffer (ctx->webgpu_ctx ->device ,
826825 buf,
827- size,
826+ ( size + WEBGPU_STORAGE_BUF_BINDING_MULT - 1 ) & ~(WEBGPU_STORAGE_BUF_BINDING_MULT - 1 ) ,
828827 wgpu::BufferUsage::Storage | wgpu::BufferUsage::CopySrc | wgpu::BufferUsage::CopyDst,
829828 " allocated_buffer" );
830829
You can’t perform that action at this time.
0 commit comments