Skip to content

Commit 7ba6ec5

Browse files
committed
wait until all data has been transfered before asserting results in convolution assertion code
1 parent c0c6ad3 commit 7ba6ec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/simulator/CLSimulator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ void CLSimulator::assertConvolutionResults()
522522
std::unique_ptr<float[]> sumFootprintAMPA_tmp(new float[_numNeurons]);
523523
_err = _wrapper.getQueue().enqueueReadBuffer(_sumFootprintAMPA_cl, CL_FALSE, 0, _numNeurons * sizeof(float), sumFootprintAMPA_tmp.get(), NULL, NULL);
524524
std::unique_ptr<float[]> sumFootprintNMDA_tmp(new float[_numNeurons]);
525-
_err = _wrapper.getQueue().enqueueReadBuffer(_sumFootprintNMDA_cl, CL_FALSE, 0, _numNeurons * sizeof(float), sumFootprintNMDA_tmp.get(), NULL, NULL);
525+
_err = _wrapper.getQueue().enqueueReadBuffer(_sumFootprintNMDA_cl, CL_TRUE, 0, _numNeurons * sizeof(float), sumFootprintNMDA_tmp.get(), NULL, NULL);
526526

527527
for (size_t i = 0; i < _numNeurons; ++i)
528528
{

0 commit comments

Comments
 (0)