-
-
Notifications
You must be signed in to change notification settings - Fork 662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: Add ITKVkFFTBackend remote module #3363
ENH: Add ITKVkFFTBackend remote module #3363
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Squa
Seeing two different CMake errors on Windows vs Linux, not having much luck resolving either so far. Windows (MSVC) generate error:
Relevant CMakeLists.txt Relevant CMake discussion shows the INTERFACE library property whitelist has been removed as of CMake 3.19, but ITK still supports CMake 3.16/17/18. This code already runs on other ITK targets, unclear why the VkFFT dependency creates this issue? Perhaps no INTERFACE_LIBRARY targets? Linux (Ninja) compile error:
Headers should be included at ITKVkFFTBackend/CMakeLists.txt:61 Any thoughts? EDIT: See InsightSoftwareConsortium/ITKVkFFTBackend#38 for Linux CMake fix in ITKVkFFTBackend. EDIT: Resolved in recent updates |
6c3b367
to
1d96c0f
Compare
ITKVkFFTBackend and its VkFFT dependency rely on OpenCL definitions that are found in `FindOpenCL.cmake` as of CMake 3.10. Here we remove the outdated ITK version of `FindOpenCL.cmake` in favor of the newer version packaged with CMake. See https://cmake.org/cmake/help/latest/module/FindOpenCL.html VkFFT defines INTERFACE_LIBRARY targets which conflict with ITK's IDE folder structuring helper for CMake<3.19. Amended to ignore INTERFACE_LIBRARY targets in folder structuring.
1d96c0f
to
b6ed27a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know nothing about when ${type}
would be "INTERFACE_LIBRARY"
so I am no help with that code. Otherwise looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🌮 🎉
Changes:
ITK/FindOpenCL.cmake
in favor of CMake's built-in procedure for finding OpenCL, which extends the list of variables defined for referencing OpenCL and is compatible with CMake>=3.10.PR Checklist
Refer to the ITK Software Guide for
further development details if necessary.