Skip to content

Commit e692c2d

Browse files
CUDA: fixed peer access toggle synchronization
1 parent b9f4795 commit e692c2d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ggml-cuda.cu

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <limits>
99
#include <stdint.h>
1010
#include <stdio.h>
11+
#include <unistd.h>
1112
#include <vector>
1213

1314

@@ -7999,6 +8000,9 @@ static void ggml_cuda_set_peer_access(const int n_tokens) {
79998000
}
80008001
}
80018002
}
8003+
8004+
usleep(100000); // 0.1 s
8005+
80028006
#endif // NDEBUG
80038007

80048008
peer_access_enabled = enable_peer_access;

0 commit comments

Comments
 (0)