Learn R Programming

Rllvm (version 0.7-0)

generatePTX: Generate PTX code to run on a NVIDIA GPU

Description

This function uses LLVM's ability to generate code for a NVIDIA GPU rather than the local CPU.

Usage

generatePTX(m)

Arguments

m

the Module to be compiled

Value

a character vector containing the PTX code. This can be written to a file or used directly with the RCUDA package. See http://www.omegahat.org/RCUDA.

References

LLVM documentation. NVIDIA and CUDA SDK documentation