MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / ggml_vk_buffer_write

Function ggml_vk_buffer_write

external/ggml/src/ggml-vulkan/ggml-vulkan.cpp:7116–7119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7114
7115 for (uint64_t i3 = 0; i3 < ne3; i3++) {
7116 for (uint64_t i2 = 0; i2 < ne2; i2++) {
7117 // Find longest contiguous slice
7118 if (ne1*nb1 == dstnb2) {
7119 deferred_memcpy((uint8_t *)staging->ptr + i3*dstnb3 + i2*dstnb2, (const uint8_t *) tensor->data + buf_offset + i3*nb3 + i2*nb2, dstnb2, &subctx->in_memcpys);
7120 } else {
7121 for (uint64_t i1 = 0; i1 < ne1; i1++) {
7122 if (ne0*nb0/bs == dstnb1) {

Callers 5

ggml_vk_buffer_copyFunction · 0.85
ggml_vk_test_matmulFunction · 0.85
ggml_vk_test_dequantFunction · 0.85

Calls 1

ggml_vk_buffer_write_2dFunction · 0.85

Tested by

no test coverage detected