Add a GPU process table to the Performance tab showing which processes use the selected GPU, with per-process VRAM, GPU utilization, CPU, host memory, and command. Includes a kill endpoint (SIGTERM/SIGKILL, with optional parent kill) behind a confirm dialog. - nvcurve/hal/processes.py: NVML + /proc process enumeration - server.py: GET /api/processes, POST /api/processes/kill (refuses to signal init/kthreadd) - frontend: ProcessList component, API client, types - tests: test_processes.py - docs: API reference for the new endpoints
32 lines
1000 B
Makefile
32 lines
1000 B
Makefile
# NVCurve — developer convenience targets.
|
|
#
|
|
# End users don't need make: run ./install.sh (see README "Installation").
|
|
|
|
UV ?= uv
|
|
NPM ?= npm
|
|
|
|
.PHONY: help frontend frontend-dev install dev test clean
|
|
|
|
help: ## Show available targets
|
|
@grep -E '^[a-zA-Z_-]+:.*?## ' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-15s\033[0m %s\n", $$1, $$2}'
|
|
|
|
frontend: ## Build the React frontend into frontend/dist
|
|
cd frontend && $(NPM) ci && $(NPM) run build
|
|
|
|
frontend-dev: ## Run the Vite dev server (hot reload)
|
|
cd frontend && $(NPM) run dev
|
|
|
|
install: ## Install nvcurve as a uv tool (builds frontend if missing/stale)
|
|
$(UV) tool install --force .
|
|
|
|
dev: ## Create/refresh the dev environment (uv sync)
|
|
$(UV) sync
|
|
|
|
test: ## Run the test suite
|
|
$(UV) run python tests/test_security.py
|
|
$(UV) run python tests/test_rm_power.py
|
|
$(UV) run python tests/test_wireview.py
|
|
$(UV) run python tests/test_processes.py
|
|
|
|
clean: ## Remove build artifacts
|
|
rm -rf frontend/dist frontend/node_modules
|