has_cuda: Check CUDA Runtime Availability for fastPLS

View source: R/native_api.R

has_cudaR Documentation

Check CUDA Runtime Availability for fastPLS

Description

Report whether CUDA-native fastPLS execution can be used in the current session.

Usage

has_cuda()

Details

has_cuda() returns TRUE only when both conditions hold:

  • the package was built with CUDA support (compile-time macro FASTPLS_HAS_CUDA);

  • CUDA runtime reports at least one available device.

If either condition is not met, the function returns FALSE. The result describes backend availability for the current R session; it does not select a device, allocate GPU memory, or run a test computation.

Value

A length-1 logical.

See Also

pls, fastsvd

Examples

has_cuda()

fastPLS documentation built on Sept. 29, 2026, 1:06 a.m.