// GpuTaskCompletion::Wait mode the timing is expected to be done in the caller.
wallcycle_start_nocount(wcycle, ewcWAIT_GPU_NB_L);
- if (!haveStreamTasksCompleted(nb->stream[iLocality]))
+ if (!haveStreamTasksCompleted(nb->deviceStreams[iLocality]))
{
wallcycle_stop(wcycle, ewcWAIT_GPU_NB_L);
}
else if (haveResultToWaitFor)
{
- gpuStreamSynchronize(nb->stream[iLocality]);
+ nb->deviceStreams[iLocality].synchronize();
}
// TODO: this needs to be moved later because conditional wait could brake timing