]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ggml : alternative fix for race condition bug in non-inplace ggml_compute_forward_dia...
authorxaedes <redacted>
Sun, 14 May 2023 15:55:02 +0000 (17:55 +0200)
committerGitHub <redacted>
Sun, 14 May 2023 15:55:02 +0000 (18:55 +0300)
commit79b2d5b69d80be0bf29312fb9a95854876b0a8a5
tree78bafe02fd7da180ef700b24fe0970577c64a13f
parent13c351ad7292c5b5ab35db25c7a4f993e75d9cfd
ggml : alternative fix for race condition bug in non-inplace ggml_compute_forward_diag_mask_f32 (#1454)

* fix race condition bug in non-inplace ggml_compute_forward_diag_mask_f32

memcpy needs to be synchronized across threads to avoid race conditions.
=> do it in INIT phase

* remove trailing whitespace

* Update ggml.c

---------

Co-authored-by: Georgi Gerganov <redacted>
ggml.c