Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -11656,7 +11656,14 @@ typedef int ggml_lock_t;

#define ggml_lock_init(x) UNUSED(x)
#define ggml_lock_destroy(x) UNUSED(x)
#ifdef __x86_64__
static inline void ggml_lock_lock(void* x);
inline void ggml_lock_lock(void* x) {
__asm__ __volatile__("pause\n");
}
#else
#define ggml_lock_lock(x) UNUSED(x)
#endif
#define ggml_lock_unlock(x) UNUSED(x)

#define GGML_LOCK_INITIALIZER 0
Expand Down