From 14165d52fb9e116388bd5b4e4e98e32c63d5e63e Mon Sep 17 00:00:00 2001 From: Matt McCormick <matt.mccormick@kitware.com> Date: Sat, 30 Nov 2019 23:24:08 -0500 Subject: [PATCH] WIP: BUG: Explicitly update the CPU buffer in OpenCLResampler component --- Components/Resamplers/OpenCLResampler/elxOpenCLResampler.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Components/Resamplers/OpenCLResampler/elxOpenCLResampler.hxx b/Components/Resamplers/OpenCLResampler/elxOpenCLResampler.hxx index 178d71512..d4e956ec8 100644 --- a/Components/Resamplers/OpenCLResampler/elxOpenCLResampler.hxx +++ b/Components/Resamplers/OpenCLResampler/elxOpenCLResampler.hxx @@ -254,7 +254,7 @@ OpenCLResampler< TElastix > this->m_GPUResampler->Update(); // Perform GPU explicit sync and graft the output to this filter - //itk::GPUExplicitSync< GPUResamplerType, GPUOutputImageType >( this->m_GPUResampler, false ); + this->m_GPUResampler->GetOutput()->UpdateCPUBuffer(); this->GraftOutput( this->m_GPUResampler->GetOutput() ); // Report OpenCL device to the log