Skip to content

Commit

Permalink
misc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
apage43 committed Oct 11, 2023
1 parent 01c0365 commit 5d2b390
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ggml-vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion kompute/op_add.comp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ layout(push_constant) uniform PushConstants {
uint inAOff;
uint inBOff;
uint outOff;
uint row;
} pcs;

void main() {
Expand Down

0 comments on commit 5d2b390

Please sign in to comment.