Skip to contents

Performs a post-install runtime verification by running a small GPU round-trip: creates a GPU table, performs a filter, and collects back to R. This confirms that the package loads, GPU is accessible, and basic operations work.

Usage

verify_installation()

Value

Invisibly returns a list with:

ok

Logical: TRUE if all checks pass

package_loaded

Logical: package loads without error

gpu_available

Logical: GPU detected and accessible

gpu_name

Character: GPU model name, or NA

libcudf_version

Character: the libcudf version cuplyr was built against (such as "26.10.2"), or NA when it is unknown

roundtrip_ok

Logical: data round-trip succeeded

time_seconds

Numeric: time for the round-trip test

Details

This function runs four checks in sequence:

  1. Package load: library(cuplyr) succeeds

  2. libcudf version: the libcudf cuplyr was built against is 26.02 or newer (an unknown version passes)

  3. GPU detection: gpu_details() shows an available GPU

  4. Round-trip: tbl_gpu(mtcars) |> filter(mpg > 20) |> collect() returns correct results

See also

check_deps() for pre-install dependency checks, diagnostics() for full system diagnostics

Examples

if (FALSE) { # \dontrun{
result <- verify_installation()
if (result$ok) {
  message("cuplyr is working!")
}
} # }