powered by
Create streams stored on the CPU.
createStreamsCpu(n = prod(getOption("clrng.Nglobal")))
an R matrix of streams on CPU.
a integer specifying number of streams to create, default is the number of total work items in use.
library(clrng) if (detectGPUs() >= 1) { t(createStreamsCpu(n=5)) ## GPU streams myStreamsGpu = vclMatrix(createStreamsCpu(n=4)) }else { message("No GPU context available") }
Run the code above in your browser using DataLab