@@ -1398,7 +1398,7 @@ static void * const vk_ptr_base = (void *)(uintptr_t) 0x1000; // NOLINT
13981398
13991399static uint64_t vk_tensor_offset(const ggml_tensor * tensor) {
14001400 if (tensor->view_src) {
1401- return (uint8_t *) tensor->tensor_data( view_src) - (uint8_t *) vk_ptr_base;
1401+ return (uint8_t *) tensor_data( tensor->view_src) - (uint8_t *) vk_ptr_base;
14021402 }
14031403 return (uint8_t *) tensor_data(tensor) - (uint8_t *) vk_ptr_base;
14041404}
@@ -7356,7 +7356,7 @@ static void ggml_vk_flash_attn(ggml_backend_vk_context * ctx, vk_context& subctx
73567356 if (ctx->device->uma) {
73577357 ggml_vk_host_get(ctx->device, tensor_data(q), d_Q, q_buf_offset);
73587358 ggml_vk_host_get(ctx->device, tensor_data(k), d_K, k_buf_offset);
7359- ggml_vk_host_get(ctx->device, v->data( ), d_V, v_buf_offset);
7359+ ggml_vk_host_get(ctx->device, tensor_data(v ), d_V, v_buf_offset);
73607360 ggml_vk_host_get(ctx->device, tensor_data(dst), d_D, d_buf_offset);
73617361 Q_uma = d_Q != nullptr;
73627362 K_uma = d_K != nullptr;
@@ -8555,7 +8555,7 @@ static void ggml_vk_multi_add(ggml_backend_vk_context * ctx, vk_context& subctx,
85558555 uma[i] = false;
85568556
85578557 if (ctx->device->uma) {
8558- ggml_vk_host_get(ctx->device, tensors[i]->data , buf[i], offset[i]);
8558+ ggml_vk_host_get(ctx->device, tensor_data( tensors[i]) , buf[i], offset[i]);
85598559 uma[i] = buf[i] != nullptr;
85608560 }
85618561 if (!uma[i]) {
@@ -8708,7 +8708,7 @@ static void ggml_vk_op_f32_wkv(ggml_backend_vk_context * ctx, vk_context& subctx
87088708
87098709 if (ctx->device->uma) {
87108710 for (int i = 0; i < num_srcs; i++) {
8711- ggml_vk_host_get(ctx->device, dst->src[i]->data , d_srcs[i], src_offsets[i]);
8711+ ggml_vk_host_get(ctx->device, tensor_data( dst->src[i]) , d_srcs[i], src_offsets[i]);
87128712 srcs_uma[i] = d_srcs[i] != nullptr;
87138713 }
87148714
0 commit comments