matlab-setup-gpu
Detect and validate GPU availability for MATLAB GPU computing. Use when the user can't use their GPU, or is setting up or selecting a GPU. Triggers on: gpuDevice, GPU setup, check GPU, GPU not found, GPU not working, can't use GPU, GPU not available, unable to find a supported GPU device, compatible GPU, canUseGPU, validateGPU.
npx skills add matlab/matlab-agentic-toolkit --skill matlab-setup-gpu --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Set Up GPU for MATLAB Detect whether a compatible GPU is available, validate it works, and diagnose common failure modes. ## When to Use - User wants to check if their system can run GPU code in MATLAB - User gets errors when calling `gpuDevice` or `gpuArray` - User wants to set up or select a specific GPU in a multi-GPU system - User needs to troubleshoot why GPU computing isn't working - As a prerequisite check before any GPU-accelerated workflow ## When NOT to Use - Writing or optimizing GPU-accelerated code — this skill only detects and diagnoses GPU availability - Monitoring GPU memory or utilization during computation — use `gpuDevice` properties directly or NVIDIA tools - Distributing work across multiple GPUs with parallel pools — use `parpool` workflows ## Conventions - Use MATLAB-native APIs (`canUseGPU`, `gpuDeviceTable`, `gpuDevice`) for detection and properties — reserve `nvidia-smi` for information MATLAB cannot provide - Prefer `canUseGPU` over `gpuDeviceCount == 0` or `isempty(gpuDeviceTable)` for availability checks — `canUseGPU` also verifies licensing and toolbox state - If recommending a driver update, fetch the **GPU Computing Requirements** documentation pag
- When to Use
- When NOT to Use
- Conventions
- Workflow
- 1. Is a GPU available?
- 2. If canUseGPU returns false — diagnose
- 3. List available devices
- 4. Select device and query properties
- 5. Check driver model (Windows only)
- 6. Benchmark GPU performance (optional)
- Troubleshooting
- Key Functions
What does the matlab-setup-gpu skill do?
Detect and validate GPU availability for MATLAB GPU computing. Use when the user can't use their GPU, or is setting up or selecting a GPU. Triggers on: gpuDevice, GPU setup, check GPU, GPU not found, GPU not working, can't use GPU, GPU not available, unable to find a supported GPU device, compatible GPU, canUseGPU, validateGPU.
How do I install it?
Run `npx skills add matlab/matlab-agentic-toolkit --skill matlab-setup-gpu --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From matlab/matlab-agentic-toolkit, a repository with 868 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
