synchronize: Synchronize Device Execution

Description Usage Author(s) Examples

View source: R/RcppExports.R

Description

This pauses execution until the processing is complete on the device (CPU/GPU/etc.). This is important especially for benchmarking applications.

Usage

1

Author(s)

Charles Determan Jr.

Examples

1
2
3
4
5
6
## Not run: 
    mat <- vclMatrix(rnorm(500^2), ncol = 500, nrow = 500)
    system.time(mat %*% mat)
    system.time(mat %*% mat; synchronize())

## End(Not run)

cdeterman/gpuR documentation built on July 13, 2019, 3:15 a.m.