library("rplatypus")
library(rplatypus)
platypus_use_torch("pascal") # GTX 10-series and olderAsk for a particular PyTorch build
Description
Call this before anything starts the engine - straight after library(rplatypus) - and before the first call that needs Python.
Usage
platypus_use_torch(build = c("pascal", "default"))
Arguments
build
|
“pascal” for the last PyTorch built against CUDA 12, or NULL for the default.
|
Details
There is one reason to: a GeForce GTX 10-series card, or anything older. PyTorch 2.8 and later ship CUDA 13 builds, and CUDA 13 dropped the Maxwell, Pascal and Volta generations outright. No driver update brings them back. Without this, such a card is simply not used and everything runs on the processor, perhaps ten times slower, with nothing obviously wrong.
On anything from Turing - the RTX 20-series onwards - the default is correct and this is unnecessary.
Value
The requirement string now in force, invisibly.
Why this page shows no output
What this prints is a property of the machine it runs on, so an example output here would describe whichever machine built this page rather than yours. Run it and read your own.