Skip to contents

Prints formatted information about the available GPU to the console. Useful for verifying GPU setup and checking available resources.

Usage

show_gpu()

Value

Invisibly returns the GPU info list (same as gpu_details()).

Details

Output includes:

  • Device name and compute capability

  • Total, free, and used memory (device level: includes the memory cuplyr's memory resource holds, see gpu_memory_state())

  • Number of streaming multiprocessors

See also

has_gpu for availability check, gpu_details for programmatic access

Examples

show_gpu()
#> GPU Information
#> ---------------------------------------- 
#> Device:       NVIDIA GeForce RTX 5070 
#> Compute:      12.0 
#> Memory:       12.4 GB total
#>               11.4 GB free
#>               1 GB used
#> SMs:          48