Registration Open for Bioc2024 July 24-26


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

Bioconductor version: Release (3.19)

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.4") 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:

Customized_opencl_code HTML R Script
quickStart HTML R Script
Reference Manual PDF


biocViews Infrastructure, Software
Version 1.20.0
In Bioconductor since BioC 3.9 (R-3.6) (5 years)
License GPL-3
Depends R (>= 3.6.0), methods, utils
Imports Deriv, DescTools, digest, pryr, stringr, BiocGenerics
System Requirements 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
Bug Reports
See More
Suggests testthat, knitr, rmarkdown, BiocStyle
Linking To Rcpp
Depends On Me
Imports Me
Suggests Me
Links To Me
Build Report Build Report

Package Archives

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

Source Package gpuMagic_1.20.0.tar.gz
Windows Binary
macOS Binary (x86_64) gpuMagic_1.20.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