use _mm_pause() in busyloop on x86_64 to reduce power consumption
This commit is contained in:
parent
23f148516d
commit
5423eb6642
1 changed files with 1 additions and 1 deletions
2
ggml.c
2
ggml.c
|
@ -11656,7 +11656,7 @@ typedef int ggml_lock_t;
|
|||
|
||||
#define ggml_lock_init(x) UNUSED(x)
|
||||
#define ggml_lock_destroy(x) UNUSED(x)
|
||||
#if defined(__x86_64__) || defined(_MSC_VER)
|
||||
#if defined(__x86_64__) || (defined(_MSC_VER) && defined(_M_AMD64))
|
||||
#define ggml_lock_lock(x) _mm_pause()
|
||||
#else
|
||||
#define ggml_lock_lock(x) UNUSED(x)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue