-
Notifications
You must be signed in to change notification settings - Fork 29
allow niftyreg to be built with opencl #422
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
Conversation
|
Ideally some of this should be in their export file (also for openmp). I guess it isn't?
|
|
No, just flags saying that NiftyReg was built with those libraries |
KrisThielemans
left a comment
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.
some suggestions
src/Registration/cReg/CMakeLists.txt
Outdated
| # If niftyreg was bulit with OpenCL | ||
| if (NIFTYREG_BUILT_WITH_OPENCL) | ||
| find_package(OpenCL REQUIRED) | ||
| if (OpenCL_FOUND) |
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.
can dispense with that, as it's REQUIRED
src/Registration/cReg/CMakeLists.txt
Outdated
| find_package(OpenCL REQUIRED) | ||
| if (OpenCL_FOUND) | ||
| TARGET_LINK_LIBRARIES(Reg PUBLIC ${OpenCL_LIBRARIES}) | ||
| INCLUDE_DIRECTORIES(${OpenCL_INCLUDE_DIRS}) |
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.
ideally also target-specific, but ok
|
@rijobro merge in master to see |
|
merging as it looks fine to me (plus I doubt Travis has openCL anyway). |
No description provided.