Learn R Programming

gpuR (version 2.0.6)

synchronize: 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()

Arguments

Value

This does not return anything.

Author

Charles Determan Jr.

Examples

Run this code
if (FALSE) {
    mat <- vclMatrix(rnorm(500^2), ncol = 500, nrow = 500)
    system.time({mat %*% mat})
    system.time({mat %*% mat; synchronize()})
}

Run the code above in your browser using DataLab