CUDA: fixed peer access toggle synchronization

This commit is contained in:
JohannesGaessler 2023-12-22 15:21:36 +01:00
parent b9f47952ff
commit e692c2d887

View file

@ -8,6 +8,7 @@
#include <limits> #include <limits>
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h>
#include <vector> #include <vector>
@ -7999,6 +8000,9 @@ static void ggml_cuda_set_peer_access(const int n_tokens) {
} }
} }
} }
usleep(100000); // 0.1 s
#endif // NDEBUG #endif // NDEBUG
peer_access_enabled = enable_peer_access; peer_access_enabled = enable_peer_access;