Skip to content

Conversation

@eddelbuettel
Copy link
Contributor

Here is a simple PR that picks 120 for macOS but otherwise defaults to the current value of 300 for the target version of OpenCL desired at compile time.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for setting the OpenCL target version at compile time, addressing issue #9. The implementation sets version 120 (OpenCL 1.2) for macOS systems and version 300 (OpenCL 3.0) for other platforms, matching the minimum OpenCL 1.2 requirement documented in the README.

  • Introduces OPENCL_TARGET_VERSION variable that defaults to 300 for non-macOS systems and 120 for macOS
  • Adds -DCL_TARGET_OPENCL_VERSION compiler flag to PKG_CPPFLAGS using the configured version
  • Updates configuration summary output to display the selected OpenCL target version with improved formatting alignment

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
configure.ac Initializes OPENCL_TARGET_VERSION variable, sets platform-specific values (120 for macOS, 300 for others), adds AC_SUBST declaration, and updates summary output with the target version
configure Auto-generated configure script reflecting all changes from configure.ac
src/Makevars.in Adds -DCL_TARGET_OPENCL_VERSION compiler flag to PKG_CPPFLAGS with variable substitution

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coatless
Copy link
Contributor

@eddelbuettel thanks for this! See notes on Element. Let me know if you want me to port that conversation over to issue tickets.

Have to go dark for a bit to work on a few items. Will be back around midnight.

@coatless coatless merged commit 7e1d378 into main Nov 18, 2025
2 checks passed
@eddelbuettel eddelbuettel deleted the feature/opencl_target branch November 29, 2025 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants