Skip to content

Commit 3120413

Browse files
committed
vulkan : remove unused vars (#0)
ggml-ci
1 parent 2155357 commit 3120413

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

ggml/src/ggml-vulkan/ggml-vulkan.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ static vk_op_unary_push_constants vk_op_unary_push_constants_init(const ggml_ten
722722
p.nb11 = (uint32_t)(dst->nb[1] / dst_tsize);
723723
p.nb12 = (uint32_t)(dst->nb[2] / dst_tsize);
724724
p.nb13 = (uint32_t)(dst->nb[3] / dst_tsize);
725-
725+
726726
return p; // fastdiv values and offsets are initialized later in ggml_vk_op
727727
}
728728

@@ -7677,9 +7677,6 @@ static void ggml_vk_repeat_back(ggml_backend_vk_context * ctx, vk_context& subct
76777677
}
76787678

76797679
static void ggml_vk_cpy(ggml_backend_vk_context * ctx, vk_context& subctx, const ggml_tensor * src0, ggml_tensor * dst, bool dryrun = false) {
7680-
const uint32_t src0_type_size = ggml_type_size(src0->type);
7681-
const uint32_t dst_type_size = ggml_type_size(dst->type);
7682-
76837680
uint32_t ne = (uint32_t)ggml_nelements(src0);
76847681
if (ggml_is_quantized(src0->type) && ggml_is_quantized(dst->type)) {
76857682
// Convert from number of logical elements to 2- or 4-byte units.

ggml/src/ggml-vulkan/vulkan-shaders/upscale.comp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ float fetch_bilinear(ivec2 c0, ivec2 c1, vec2 d, uint i12, uint i13) {
4242
const float v10 = data_a[base + c1.y * p.nb01 + c0.x * p.nb00];
4343
const float v11 = data_a[base + c1.y * p.nb01 + c1.x * p.nb00];
4444

45-
return
45+
return
4646
v00 * (1.0-d.x) * (1.0-d.y) +
4747
v01 * d.x * (1.0-d.y) +
4848
v10 * (1.0-d.x) * d.y +
@@ -57,7 +57,7 @@ float interpolate_bilinear(uint i10, uint i11, uint i12, uint i13) {
5757
const vec2 d = c - c0f;
5858
const ivec2 c0 = max(ivec2(c0f), 0);
5959
const ivec2 c1 = min(ivec2(c0f + 1), ne0 - 1);
60-
60+
6161
return fetch_bilinear(c0, c1, d, i12, i13);
6262
}
6363

0 commit comments

Comments
 (0)