mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-30 21:34:36 +00:00
misc vulkan cleanup
make pushconts consistent w/ dispatch, avoid a double free
This commit is contained in:
parent
f0cd38b9ad
commit
46385ee0d5
@ -307,7 +307,9 @@ bool ggml_vk_has_h2d_all(struct ggml_kompute_context * ctx) {
|
|||||||
void ggml_vk_free(struct ggml_kompute_context * ctx) {
|
void ggml_vk_free(struct ggml_kompute_context * ctx) {
|
||||||
assert(ctx == s_kompute_context);
|
assert(ctx == s_kompute_context);
|
||||||
s_kompute_context = nullptr;
|
s_kompute_context = nullptr;
|
||||||
delete ctx;
|
if (ctx != nullptr) {
|
||||||
|
delete ctx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
static
|
||||||
|
@ -20,7 +20,6 @@ layout(push_constant) uniform PushConstants {
|
|||||||
uint inAOff;
|
uint inAOff;
|
||||||
uint inBOff;
|
uint inBOff;
|
||||||
uint outOff;
|
uint outOff;
|
||||||
uint row;
|
|
||||||
} pcs;
|
} pcs;
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
|
Loading…
Reference in New Issue
Block a user