Skip to content

Package updates following upstream 3.1.0 changes#17

Merged
eddelbuettel merged 12 commits into
mainfrom
dirk/bandicoot_3.1.0
Dec 18, 2025
Merged

Package updates following upstream 3.1.0 changes#17
eddelbuettel merged 12 commits into
mainfrom
dirk/bandicoot_3.1.0

Conversation

@eddelbuettel

@eddelbuettel eddelbuettel commented Dec 18, 2025

Copy link
Copy Markdown
Contributor

This PR 'somewhat manually' and via cherry-picking re-integrates the changes developed while upstream was going from 3.0.1 to 3.1.0. We are now in good shape.

@eddelbuettel

Copy link
Copy Markdown
Contributor Author

I intend to merge this in a few hours. It restores the package to working with current bandicoot sources and OpenCL, plus CUDA where available (e.g. locally for me).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the RcppBandicoot package to align with upstream Bandicoot library version 3.1.0 changes. The updates include changes to the build system configuration, a new GPU initialization function, bug fixes in the kernel loading code, and changes to default backend priority.

  • Added new gpu_initialize() function to allow explicit GPU backend initialization
  • Changed default backend priority from OpenCL-first to CUDA-first in configure scripts
  • Fixed bug in OpenCL kernel source loading where wrong variable was used
  • Updated build configuration to use new COOT_TARGET_OPENCL_VERSION and COOT_KERNEL_SOURCE_DIR macros

Reviewed changes

Copilot reviewed 5 out of 663 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
src/coot.cpp New file implementing gpu_initialize() wrapper around coot::coot_init()
src/RcppExports.cpp Auto-generated Rcpp bindings for new gpu_initialize() function
src/Makevars.in Updated compiler flags with COOT_TARGET_OPENCL_VERSION and COOT_KERNEL_SOURCE_DIR, removed OpenMP from CXXFLAGS
src/Makevars Generated build configuration with system-specific paths (should not be committed)
inst/include/bandicoot_bits/opencl/kernel_src.hpp Fixed bug using wrong variable name when constructing kernel file path
configure.ac Changed backend priority to prefer CUDA over OpenCL
configure Generated configure script reflecting CUDA priority change
R/rcppbandicoot-package.R Package initialization code commented out (previously set kernel paths)
R/RcppExports.R Added R wrapper for gpu_initialize() function without documentation
DESCRIPTION Added Dirk Eddelbuettel as author, reformatted Authors@R, removed C++14 from SystemRequirements

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

Comment thread R/rcppbandicoot-package.R Outdated
Comment thread DESCRIPTION
Comment thread src/Makevars Outdated
Comment thread src/Makevars.in
Comment thread R/rcppbandicoot-package.R Outdated
Comment thread R/RcppExports.R
Comment thread R/RcppExports.R
Comment thread src/Makevars.in Outdated
Comment thread src/Makevars Outdated
Comment thread src/Makevars Outdated
@eddelbuettel

Copy link
Copy Markdown
Contributor Author

One TODO on configuration left, but we now have

0 errors ✔ | 0 warnings ✔ | 1 note ✖

where the NOTE is on size and hence immutable.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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


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

Comment thread configure.ac Outdated
Comment thread configure Outdated
@eddelbuettel eddelbuettel merged commit 027fa44 into main Dec 18, 2025
2 checks passed
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.

2 participants