Skip to content

gpu

Synopsis

The gpu command manages GPU-related operations, including installing, enabling, disabling, and uninstalling GPU drivers and related components, as well as checking the GPU status.

bash
olares-cli gpu [subcommand] [options]

Note

  • By default, the Olares installation script detects your GPU hardware and CUDA drivers, then configures and enables the GPU components and services automatically.
  • Currently, only NVIDIA GPUs are supported.

Subcommands

SubcommandDescription
installInstalls GPU drivers and dependencies. Requires specifying the installation directory (--base-dir) and the Olares version (--version).
enableEnables GPU functionality to support GPU-based applications.
disableDisables GPU functionality, stopping support for GPU-based applications.
uninstallUninstalls GPU drivers and related components.
statusDisplays the installed GPU driver version, CUDA version, and the status of GPU-related services.

Options

NameShortDescription
--base-dir-bSpecifies the base installation directory for the GPU components. Typically, this is Olares' default installation directory $HOME/.olares.
--version-vSpecifies the Olares version for GPU drivers and components.
Version values follow the format x.y.z (e.g., 1.10.0) or include a build date (e.g., 1.10.0-20241109).
Refer to the GitHub Releases page for available versions.
--help-hDisplays help information.

Example

bash
# Install GPU drivers and dependencies to a specific directory
olares-cli gpu install --base-dir /home/olares/.olares --version 1.11.1-rc.4

# Enable GPU functionality
olares-cli gpu enable

# View the status of GPU drivers and services
olares-cli gpu status

# Disable GPU functionality
olares-cli gpu disable

# Uninstall GPU drivers and components
olares-cli gpu uninstall