GPU vs CPU
NeoHive uses your hardware to index and search your code and knowledge. It runs faster with a GPU but works fine on CPU.
Auto-detection
Section titled “Auto-detection”The installer detects your hardware and picks the best backend automatically:
| Hardware | Backend |
|---|---|
| NVIDIA GPU | CUDA |
| AMD GPU | ROCm |
| Intel / other GPU | Vulkan |
| No GPU | CPU |
In most cases you don’t need to configure anything.
Forcing CPU mode
Section titled “Forcing CPU mode”If detection picks the wrong backend, or a GPU backend fails to start, force CPU mode:
NEOHIVE_BACKEND=cpu bash <(curl -fsSL https://raw.githubusercontent.com/NeoHiveAI/install/main/install.sh)CPU mode runs everywhere; it’s just slower for indexing large repositories. Day-to-day use is fast on either backend. If the installer detects a backend issue, it suggests this command automatically.
NVIDIA Container Toolkit
Section titled “NVIDIA Container Toolkit”If you have an NVIDIA GPU and the container fails to start, make sure the NVIDIA Container Toolkit is installed. The installer will tell you if it’s missing.