The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

opencltools: 'OpenCL' Tools for R Package Developers

Runtime 'OpenCL' support for R package developers: probe hardware and drivers, load and concatenate kernel sources, and manage dependency-annotated '.cl' libraries, so packages like 'nmathopencl' and other ported libraries can offer GPU acceleration without each re-implementing the same plumbing. Vignettes use the 'glmbayes' envelope-gradient example and likelihood subgradient methodology (Nygren and Nygren, 2006, <doi:10.1198/016214506000000357>).

Version: 0.8.1
Depends: R (≥ 3.5.0)
Imports: stats, Rcpp (≥ 1.1.1), RcppParallel, Rdpack (≥ 0.11-0), jsonlite
LinkingTo: Rcpp, RcppArmadillo, RcppParallel
Suggests: glmbayes (≥ 0.9.3), testthat (≥ 3.0.0), spelling, knitr, rmarkdown
Published: 2026-06-03
DOI: 10.32614/CRAN.package.opencltools (may not be active yet)
Author: Kjell Nygren [aut, cre], The R Core Team [ctb, cph] (R Mathlib sources, R stats modeling code, and derived/adapted routines), The R Foundation [cph] (Portions of R Mathlib and R source code), Ross Ihaka [ctb, cph] (R Mathlib and original R modeling infrastructure), Robert Gentleman [ctb, cph] (Portions of R Mathlib), Simon Davies [ctb] (Original R glm implementation), Morten Welinder [ctb, cph] (Portions of R Mathlib), Martin Maechler [ctb] (Portions of R Mathlib)
Maintainer: Kjell Nygren <kjell.a.nygren at gmail.com>
BugReports: https://github.com/knygren/opencltools/issues
License: GPL-2
Copyright: see file COPYRIGHTS
URL: https://github.com/knygren/opencltools, https://knygren.r-universe.dev/opencltools
NeedsCompilation: yes
SystemRequirements: Optional 'OpenCL' support. If available, GPU acceleration will be used; otherwise, computation runs on CPU.
Language: en-US
Citation: opencltools citation info
Materials: README, NEWS
CRAN checks: opencltools results

Documentation:

Reference manual: opencltools.html , opencltools.pdf
Vignettes: Chapter 01: Getting started — Setting up OpenCL (source, R code)
Chapter 02: Using a ported library — assembling kernel programs (source, R code)
Chapter 03: Kernel runners and wrappers — the glmbayes pattern (source, R code)

Downloads:

Package source: opencltools_0.8.1.tar.gz
Windows binaries: r-devel: not available, r-release: opencltools_0.8.1.zip, r-oldrel: not available
macOS binaries: r-release (arm64): opencltools_0.8.1.tgz, r-oldrel (arm64): opencltools_0.8.1.tgz, r-release (x86_64): opencltools_0.8.1.tgz, r-oldrel (x86_64): opencltools_0.8.1.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=opencltools to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.