Skip to content

Commit a25b672

Browse files
committed
virtgpu: abort early
1 parent 4419c95 commit a25b672

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ggml/src/ggml-remotingfrontend/virtgpu.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#include <cerrno>
44
#include <unistd.h>
55

6+
#include <cstdlib>
7+
68
#include "virtgpu.h"
79

810
static inline void
@@ -31,9 +33,13 @@ virtgpu_init_shmem_blob_mem(struct virtgpu *gpu)
3133
gpu->shmem_blob_mem = VIRTGPU_BLOB_MEM_HOST3D;
3234
}
3335

34-
void breakpoint() {
36+
void *something = NULL;
37+
void breakpoint () {
3538
// break here
3639
INFO("BREAKPOINT HERE");
40+
if (!something) { // avoid the [[noreturn]] detection mechanism
41+
exit(0);
42+
}
3743
}
3844

3945
void

0 commit comments

Comments
 (0)