File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
tests/compute_chronological_consistency Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -435,6 +435,7 @@ libreCudaStatus_t NvCommandQueue::ensureEnoughLocalMem(NvU32 localMemReq) {
435435 COMPUTE
436436 ));
437437 timelineCtr++;
438+ LIBRECUDA_ERR_PROPAGATE (signalNotify (timelineSignal, timelineCtr, COMPUTE));
438439 }
439440
440441 LIBRECUDA_SUCCEED ();
@@ -800,8 +801,9 @@ libreCudaStatus_t NvCommandQueue::startExecution() {
800801
801802libreCudaStatus_t NvCommandQueue::signalWaitGpu (NvSignal *pSignal, NvU32 signalTarget) {
802803 if (pSignal->value == signalTarget) {
803- // no need to wait, if cpu can confirm.
804-
804+ // No need to wait, if cpu can confirm.
805+ // if this change is visible, this means it was done on this stream by operations
806+ // that were already commenced and have already executed on the GPU.
805807 return LIBRECUDA_SUCCESS;
806808 }
807809 LIBRECUDA_ERR_PROPAGATE (enqueue (
Original file line number Diff line number Diff line change 11#include < librecuda.h>
22
33#include < iostream>
4- #include < iomanip>
54#include < vector>
65#include < fstream>
76#include < cstring>
You can’t perform that action at this time.
0 commit comments