Fix CI errors
This commit is contained in:
parent
ebbc728e37
commit
3cb42757ea
1 changed files with 1 additions and 1 deletions
2
ggml.c
2
ggml.c
|
@ -1733,7 +1733,7 @@ struct ggml_barrier {
|
||||||
};
|
};
|
||||||
|
|
||||||
void ggml_once(struct ggml_once * once, void init(void)) {
|
void ggml_once(struct ggml_once * once, void init(void)) {
|
||||||
uint32_t old = atomic_load_explicit(&once->state, memory_order_acquire);
|
int old = atomic_load_explicit(&once->state, memory_order_acquire);
|
||||||
if (!old && atomic_compare_exchange_strong_explicit(&once->state, &old, 1,
|
if (!old && atomic_compare_exchange_strong_explicit(&once->state, &old, 1,
|
||||||
memory_order_acquire,
|
memory_order_acquire,
|
||||||
memory_order_relaxed)) {
|
memory_order_relaxed)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue