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.
Value
Invisibly returns a list with:
- ok
Logical:
TRUEif 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"), orNAwhen 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:
Package load:
library(cuplyr)succeedslibcudf version: the libcudf cuplyr was built against is 26.02 or newer (an unknown version passes)
GPU detection:
gpu_details()shows an available GPURound-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!")
}
} # }
