Commit e71e9823 authored by Tobias Winchen's avatar Tobias Winchen
Browse files

Clean exit on unexpected buffer size to save profiling data

parent c9e1087c
......@@ -206,7 +206,8 @@ bool GatedSpectrometer<HandlerType>::operator()(RawBytes &block) {
BOOST_LOG_TRIVIAL(error) << "Unexpected Buffer Size - Got "
<< block.used_bytes() << " byte, expected "
<< _buffer_bytes << " byte)";
exit(-1);
cudaDeviceSynchronize();
return true;
}
// CUDA_ERROR_CHECK(cudaStreamSynchronize(_h2d_stream));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment