mirror of
https://github.com/luxfi/cli.git
synced 2026-10-30 17:01:20 +00:00
- Add 'lux config lint' to validate luxd configuration files - Reports unknown keys with typo suggestions - Uses authoritative spec from github.com/luxfi/config/spec - Add 'lux gpu status' to show GPU acceleration status - Shows system info, backend (Metal/CUDA/CPU) - Reports CGO status and accelerated features - Supports --json output format - Update dependencies
31 lines
820 B
Go
31 lines
820 B
Go
// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package gpucmd
|
|
|
|
import (
|
|
"github.com/luxfi/cli/pkg/application"
|
|
"github.com/luxfi/cli/pkg/cobrautils"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// NewCmd creates the gpu command and its subcommands.
|
|
func NewCmd(_ *application.Lux) *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "gpu",
|
|
Short: "Manage GPU acceleration",
|
|
Long: `The gpu command provides utilities for managing GPU acceleration
|
|
in the Lux node. Use subcommands to check GPU status, availability,
|
|
and configuration.
|
|
|
|
GPU acceleration is used for:
|
|
- NTT operations in Corona consensus
|
|
- FHE operations in ThresholdVM
|
|
- Lattice cryptography operations`,
|
|
RunE: cobrautils.CommandSuiteUsage,
|
|
}
|
|
|
|
cmd.AddCommand(newStatusCmd())
|
|
return cmd
|
|
}
|