mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-29 04:44:34 +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) {
|
||||
assert(ctx == s_kompute_context);
|
||||
s_kompute_context = nullptr;
|
||||
delete ctx;
|
||||
if (ctx != nullptr) {
|
||||
delete ctx;
|
||||
}
|
||||
}
|
||||
|
||||
static
|
||||
|
@ -20,7 +20,6 @@ layout(push_constant) uniform PushConstants {
|
||||
uint inAOff;
|
||||
uint inBOff;
|
||||
uint outOff;
|
||||
uint row;
|
||||
} pcs;
|
||||
|
||||
void main() {
|
||||
|
Loading…
Reference in New Issue
Block a user