R/gpuAvailable.R

Defines functions gpuAvailable

Documented in gpuAvailable

gpuAvailable <- function()
{
	reason <- tryCatch({ getGpuId(); NULL },
		error = function(e) conditionMessage(e))
	if (is.null(reason)) return(TRUE)
	structure(FALSE, reason = reason)
}

Try the gputools package in your browser

Any scripts or data that you put into this service are public.

gputools documentation built on Oct. 24, 2026, 5:07 p.m.