synchronize: Synchronize Device Execution

View source: R/RcppExports.R

synchronizeR Documentation

Synchronize Device Execution

Description

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

Usage

synchronize()

Value

This does not return anything.

Author(s)

Charles Determan Jr.

Examples

## Not run: 
    mat <- vclMatrix(rnorm(500^2), ncol = 500, nrow = 500)
    system.time({mat %*% mat})
    system.time({mat %*% mat; synchronize()})

## End(Not run)

gpuR documentation built on May 29, 2024, 11:56 a.m.