Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The OpenCL version is set to 300 (OpenCL 3.0), which is higher than the package's documented minimum requirement of OpenCL 1.2 (stated in both DESCRIPTION and README.md). This could break compatibility with systems that have OpenCL versions 1.2-2.2 installed.
The value should be set to
120to match the minimum requirement:Note: In OpenCL versioning, the macro value format is: major * 100 + minor * 10, so 120 = OpenCL 1.2, 300 = OpenCL 3.0.
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.
@eddelbuettel we need to target v1.2 since the version of OpenCL supported on macOS is 1.2 (November 14, 2012!!!) due to Apple deprecating it in favor of Metal.
https://developer.apple.com/opencl/
If needed, I'm happy to move toward newer headers released by khronos.org/registry/OpenCL/
https://formulae.brew.sh/formula/opencl-headers
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.
How about a peace offering? If we are on that special OS identifying after a long-dead biologist we use 120 else we default to 300? Would that be viable?