Skip to content

Commit 957301f

Browse files
committed
Fix the wait/record dance when merging with the next buffer.
1 parent 921b931 commit 957301f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/gpuarray_buffer_cuda.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,8 +851,8 @@ static void cuda_free(gpudata *d) {
851851
d->ptr + d->sz == next->ptr) {
852852
d->sz = d->sz + next->sz;
853853
d->next = next->next;
854-
cuda_wait(next, CUDA_WAIT_ALL);
855-
cuda_record(d, CUDA_WAIT_ALL);
854+
cuda_waits(next, CUDA_WAIT_ALL, d->ls);
855+
cuda_records(d, CUDA_WAIT_ALL, d->ls);
856856
deallocate(next);
857857
} else {
858858
d->next = next;

0 commit comments

Comments
 (0)