Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CMake/ITKConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ set(ITK_USE_FFTWD "@ITK_USE_FFTWD@")
set(ITK_USE_FFTWF "@ITK_USE_FFTWF@")
set(ITK_USE_SYSTEM_FFTW "@ITK_USE_SYSTEM_FFTW@")

# Add configuration with GPU
set(ITK_USE_GPU "@ITK_USE_GPU@")
# Always OFF; set for consumers that still test ITK_USE_GPU.
set(ITK_USE_GPU "OFF")

# Wrapping
set(ITK_WRAPPING "@ITK_WRAPPING@")
Expand Down
8 changes: 1 addition & 7 deletions CMake/ITKModuleMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -296,13 +296,7 @@ endif()
itk_module_cppcheck_test(${itk-module})
endif()
if(EXISTS "${${itk-module}_SOURCE_DIR}/include" AND BUILD_TESTING)
if("${itk-module}" MATCHES ITKGPU)
if(${ITK_USE_GPU})
itk_module_headertest(${itk-module})
endif()
else()
itk_module_headertest(${itk-module})
endif()
itk_module_headertest(${itk-module})
endif()
endif()

Expand Down
109 changes: 0 additions & 109 deletions CMake/itkOpenCL.cmake

This file was deleted.

2 changes: 1 addition & 1 deletion CMake/itkSupportMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ endfunction()
#
# Examples:
# set_boolean_with_change_warning(BUILD_TESTING OFF)
# set_boolean_with_change_warning(ITK_USE_GPU YES)
# set_boolean_with_change_warning(ITK_WRAP_PYTHON YES)
#
# VALUE may be: ON/OFF, TRUE/FALSE, 1/0, YES/NO, Y/N (case-insensitive).
function(set_boolean_with_change_warning VAR VALUE)
Expand Down
31 changes: 3 additions & 28 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -609,37 +609,12 @@ include(${ITK_SOURCE_DIR}/Utilities/KWStyle/KWStyle.cmake)
# Build the Examples that are illustrated in the Software Guide.
option(BUILD_EXAMPLES "Build the examples from the ITK Software Guide." OFF)

#-----------------------------------------------------------------------------
# Enable GPU support. Requires OpenCL to be installed.
#
# DEPRECATED in ITK 6: The in-tree OpenCL-based GPU modules (GPUCommon,
# GPUFiniteDifference, GPUImageFilterBase, GPUAnisotropicSmoothing,
# GPUSmoothing, GPUThresholding, GPURegistrationCommon,
# GPUPDEDeformableRegistration) are scheduled for removal. OpenCL has
# been deprecated by Apple since macOS 10.14 (2018) and these modules
# are not covered by any CI pipeline. See issue #6075 for the migration
# path and the modern GPU alternatives (CUDA via RTK/CudaCommon,
# VkFFTBackend, C++ `std::execution` per #4433).
option(
ITK_USE_GPU
"GPU acceleration via OpenCL (DEPRECATED; see https://github.com/InsightSoftwareConsortium/ITK/issues/6075)"
OFF
)
mark_as_advanced(ITK_USE_GPU)

if(ITK_USE_GPU)
message(
DEPRECATION
"ITK_USE_GPU enables the OpenCL-based in-tree GPU modules, which are "
"scheduled for removal in ITK 6 "
"(see https://github.com/InsightSoftwareConsortium/ITK/issues/6075). "
"OpenCL is deprecated on macOS and these modules have no CI coverage. "
"For modern GPU acceleration use RTK/CudaCommon (CUDA), ITKVkFFTBackend "
"(Vulkan), or watch "
"https://github.com/InsightSoftwareConsortium/ITK/issues/4433 for the "
"`std::execution` roadmap."
FATAL_ERROR
"ITK_USE_GPU is no longer supported: ITK 6 removed the in-tree OpenCL "
"GPU modules. Set ITK_USE_GPU=OFF or remove it from the CMake cache."
)
include(itkOpenCL)
endif()

#-----------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
schema_version: 1
title: In-tree OpenCL GPU modules and ITK_USE_GPU removed
summary: |
The eight OpenCL GPU modules (`ITKGPUCommon`, `ITKGPUFiniteDifference`,
`ITKGPUImageFilterBase`, `ITKGPUAnisotropicSmoothing`, `ITKGPUSmoothing`,
`ITKGPUThresholding`, `ITKGPURegistrationCommon`, and
`ITKGPUPDEDeformableRegistration`), the `ITK_USE_GPU` option, and
`CMake/itkOpenCL.cmake` are removed, along with
`itk::GPUSmoothingRecursiveYvvGaussianImageFilter`. Configuring with
`ITK_USE_GPU=ON` now fails with an error.
details: |
OpenCL has been deprecated on macOS since 10.14, and no ITK CI job built
these modules. After the 6.0b02 beta, `main` deprecated them and excluded
them from the default build; no release shipped that deprecation.
`ITKConfig.cmake` still sets `ITK_USE_GPU` to `OFF` for projects that test
it, and `itkConfigure.h` no longer defines it. The `itkGPUKernelClassMacro`,
`itkGPUKernelMacro`, and `itkGetOpenCLSourceFromKernelMacro` macros in
`itkMacro.h` remain for projects that ship their own OpenCL classes.
actions:
- 'Remove `ITK_USE_GPU` from build scripts and CMake caches.'
- 'Remove the GPU modules from `find_package(ITK COMPONENTS ...)` lists; a project with its own copies of the GPU classes, such as elastix with `ELASTIX_USE_OPENCL`, also drops `ITKGPUCommon` from the ITK modules it links.'
- 'For GPU acceleration, use RTK''s CUDA support or the ITKVkFFTBackend remote module.'
categories:
- ApiRemoved
- Dependency
environment:
- cxx
- cmake
- python
impact: medium
pr: 7284
1 change: 0 additions & 1 deletion Modules/Core/Common/src/itkConfigure.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
#cmakedefine ITK_USE_CUFFTW
#cmakedefine ITK_USE_MKL
#cmakedefine ITK_USE_64BITS_IDS
#cmakedefine ITK_USE_GPU
#cmakedefine ITK_TEMPLATE_VISIBILITY_DEFAULT
#cmakedefine USE_COMPILER_HIDDEN_VISIBILITY
#cmakedefine ITK_USE_TBB
Expand Down
42 changes: 0 additions & 42 deletions Modules/Core/GPUCommon/CMake/itkCheckHasBlocks.cxx

This file was deleted.

25 changes: 0 additions & 25 deletions Modules/Core/GPUCommon/CMakeLists.txt

This file was deleted.

76 changes: 0 additions & 76 deletions Modules/Core/GPUCommon/include/itkGPUContextManager.h

This file was deleted.

Loading
Loading