Skip to content
Snippets Groups Projects
Commit 4ef91671 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Move dev sync to end of upload

parent c7e443d6
No related branches found
No related tags found
1 merge request!56Resolves #37 cuda streams in reconstruct
......@@ -125,12 +125,13 @@ int SceneRep::upload() {
_alloc(cam.gpu, cam.params, cv::cuda::StreamAccessor::getStream(cam.stream));
}
// Must have finished all allocations and rendering before next integration
cudaSafeCall(cudaDeviceSynchronize());
return active;
}
void SceneRep::integrate() {
cudaSafeCall(cudaDeviceSynchronize());
for (size_t i=0; i<cameras_.size(); ++i) {
auto &cam = cameras_[i];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment