mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-26 14:20:31 +01:00
vulkan: remove use of null initializer (#10372)
Seems like this isn't working for vulkan-over-metal when the array is sized by a spec constant. Maybe a spirv-cross limitation?
This commit is contained in:
parent
2eb76b2a5e
commit
f139d2ea61
@ -5,8 +5,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#extension GL_EXT_shader_explicit_arithmetic_types_int32 : require
|
#extension GL_EXT_shader_explicit_arithmetic_types_int32 : require
|
||||||
|
|
||||||
#extension GL_EXT_null_initializer : enable
|
|
||||||
|
|
||||||
#include "mul_mat_vec_base.comp"
|
#include "mul_mat_vec_base.comp"
|
||||||
|
|
||||||
layout(local_size_x_id = 0, local_size_y = 1, local_size_z = 1) in;
|
layout(local_size_x_id = 0, local_size_y = 1, local_size_z = 1) in;
|
||||||
@ -57,7 +55,11 @@ void compute_outputs(const uint32_t first_row, const uint32_t num_rows) {
|
|||||||
|
|
||||||
y_offset = QUANT_R == 1 ? 1 : QUANT_K/2;
|
y_offset = QUANT_R == 1 ? 1 : QUANT_K/2;
|
||||||
|
|
||||||
FLOAT_TYPE temp[NUM_ROWS] = {};
|
FLOAT_TYPE temp[NUM_ROWS];
|
||||||
|
|
||||||
|
for (uint i = 0; i < NUM_ROWS; ++i) {
|
||||||
|
temp[i] = FLOAT_TYPE(0);
|
||||||
|
}
|
||||||
|
|
||||||
const int unroll_count = 8;
|
const int unroll_count = 8;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user