[Elastix] OpenCLResampler

Fabien PERTUY pertuy at igbmc.fr
Fri Nov 6 17:05:40 CET 2015

Hi all,

I just tried the OpenCLResampler, and the good news is that I actually get a nice improvement of the resampling time using a simple Rigid-Affine-BSpline transform on GPU (from 38.84s to 4.98s). Or at least I assume it is using the GPU it is not specified in the log file.

The bad news I that I cannot use my GPU when I try to apply more complex transforms (based on WeightedCombinationTransform) as I get:

ERROR: Exception during making GPU copy of the transform:
itk::ExceptionObject (00000000002CEE98)
Location: "unknown"
File: d:\tk\elastix\exports\tagspublic\elastix_04_8\src\common\opencl\filters\itkGPUAdvancedCombinationTransformCopier.hxx
Line: 100
Description: itk::ERROR: GPUAdvancedCombinationTransformCopier(0000000007048C20): ERROR: GPUAdvancedCombinationTransformCopier was unable to copy transform from: EulerTransformElastix (0000000005A5A4C0)
  RTTI typeinfo:   class elastix::EulerTransformElastix<class elastix::ElastixTemplate<class itk::Image<short,3>,class itk::Image<short,3> > >
  Reference Count: 4
  Modified Time: 2498
  Debug: Off
  Object Name:

And then the transform is applied, but using the CPU (taking 4min42s using 8 threads...  the reason why I would like to use GPU).
The log and ParameterFile are attached.
I'm using ElastiX v4.8 official binaries, win7 x64, OpenCL from Nvidia drivers (up to date).

Any idea on the source of this error ?
Are their some limitations with the transforms or initialTransforms to use with GPU ?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bigr.nl/pipermail/elastix/attachments/20151106/101ccbe8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: transformix_OpenCLError.log
Type: application/octet-stream
Size: 4936 bytes
Desc: transformix_OpenCLError.log
URL: <http://lists.bigr.nl/pipermail/elastix/attachments/20151106/101ccbe8/attachment.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: avgTmap_emb41_WT.txt
URL: <http://lists.bigr.nl/pipermail/elastix/attachments/20151106/101ccbe8/attachment.txt>

More information about the Elastix mailing list