Skip to content

Commit 9474bab

Browse files
CUDA: fixed peer access toggle synchronization
1 parent 48b24b1 commit 9474bab

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

@@ -7844,6 +7845,9 @@ static void ggml_cuda_set_peer_access(const int n_tokens) {
78447845
}
78457846
}
78467847
}
7848+
7849+
usleep(100000); // 0.1 s
7850+
78477851
#endif // NDEBUG
78487852

78497853
peer_access_enabled = enable_peer_access;

0 commit comments

Comments
 (0)