hi, I used DemonsRegistrationFilter to do registration, and it workd fine. Then I noticed there has GPUDemonsRegistrationFilter, So I replaced the itkImage to itkGPUImage, everything runs well until it came to the code “filter->Update();”, the command window report erros:
OpenCL Error : CL_MEM_OBJECT_ALLOCATION_FAILURE
Here is the all output:
Total # of platform : 2
Platform 0 : Intel(R) OpenCL HD Graphics
Platform 1 : NVIDIA CUDA
NVIDIA GeForce GTX 1660 SUPER
Maximum Work Item Sizes : { 1024, 1024, 64 }
Maximum Work Group Size : 1024
Alignment in bits of the base address : 4096
Smallest alignment in bytes for any data type : 128
cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_d3d10_sharing cl_khr_d3d10_sharing cl_nv_d3d11_sharing cl_nv_copy_opts cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_device_uuid
fixed_image spacing: [0.1073, 0.1073, 0.107296]
moving_image spacing: [0.275, 0.275, 0.747253]
here
D:\lib\itk53_20230522\source\Modules\Core\GPUCommon\src\itkGPUDataManager.cxx:151:
OpenCL Error : CL_MEM_OBJECT_ALLOCATION_FAILURE
E:\projectFiles\CPPcodes\GPURegistration\x64\Release\proj001.exe (process 46136) exited with code 0.
Press any key to close this window . . .
How cant I to fix the error? Thank you very much for your suggestions!