View source: R/createStreamsCpu.R
createStreamsCpu | R Documentation |
Create streams stored on the CPU.
createStreamsCpu(n = prod(getOption("clrng.Nglobal")))
n |
a integer specifying number of streams to create, default is the number of total work items in use. |
an R matrix of streams on CPU.
library(clrng)
if (detectGPUs() >= 1) {
t(createStreamsCpu(n=5))
## GPU streams
myStreamsGpu = vclMatrix(createStreamsCpu(n=4)) }else {
message("No GPU context available")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.