DOI: 10.18129/B9.bioc.gpuMagic  

This package is for version 3.16 of Bioconductor; for the stable, up-to-date release version, see gpuMagic.

An openCL compiler with the capacity to compile R functions and run the code on GPU

Bioconductor version: 3.16

The package aims to help users write openCL code with little or no effort. It is able to compile an user-defined R function and run it on a device such as a CPU or a GPU. The user can also write and run their openCL code directly by calling .kernel function.

Author: Jiefei Wang [aut, cre], Martin Morgan [aut]

Maintainer: Jiefei Wang <szwjf08 at>

Citation (from within R, enter citation("gpuMagic")):


To install this package, start R (version "4.2") and enter:

if (!require("BiocManager", quietly = TRUE))


For older versions of R, please refer to the appropriate Bioconductor release.


To view documentation for the version of this package installed in your system, start R and enter:



HTML R Script Customized_opencl_code
HTML R Script quickStart
PDF   Reference Manual
Text   NEWS


biocViews Infrastructure, Software
Version 1.14.0
In Bioconductor since BioC 3.9 (R-3.6) (4 years)
License GPL-3
Depends R (>= 3.6.0), methods, utils
Imports Deriv, DescTools, digest, pryr, stringr, BiocGenerics
LinkingTo Rcpp
Suggests testthat, knitr, rmarkdown, BiocStyle
SystemRequirements 1. C++11, 2. a graphic driver or a CPU SDK. 3. ICD loader For Windows user, an ICD loader is required at C:/windows/system32/OpenCL.dll (Usually it is installed by the graphic driver). For Linux user (Except mac): ocl-icd-opencl-dev package is required. For Mac user, no action is needed for the system has installed the dependency. 4. GNU make
Depends On Me
Imports Me
Suggests Me
Links To Me
Build Report  

Package Archives

Follow Installation instructions to use this package in your R session.

Source Package gpuMagic_1.14.0.tar.gz
Windows Binary
macOS Binary (x86_64) gpuMagic_1.14.0.tgz
macOS Binary (arm64)
Source Repository git clone
Source Repository (Developer Access) git clone
Bioc Package Browser
Package Short Url
Package Downloads Report Download Stats

Documentation »


R / CRAN packages and documentation

Support »

Please read the posting guide. Post questions about Bioconductor to one of the following locations: