NVLS Illegal Memory Access (CUDA Error 700)
NVLS (NVLink SHARP) offloads collective operations to the NVSwitch hardware. An incompatibility between the NCCL library version, the CUDA toolkit, and the NVIDIA display driver can cause incorrect memory mappings to be passed to the NVSwitch. When the switch attempts to read/write to the GPU memory space via these invalid addresses, it triggers a hard fault (Illegal Address).
NVLS (NVLink SHARP) offloads collective operations to the NVSwitch hardware.
- Symptom
NCCL WARN Cuda failure 700 'an illegal memory access was encountered'- Root cause
- NVLS (NVLink SHARP) offloads collective operations to the NVSwitch hardware. An incompatibility between the NCCL library version, the CUDA toolkit, and the NVIDIA display driver can cause incorrect memory mappings to be passed to the NVSwitch. When the switch attempts to read/write to the GPU memory space via these invalid addresses, it triggers a hard fault (Illegal Address).
- Recommended fix
NCCL_NVLS_ENABLE=0- How Denpex helps
- Denpex investigates NVLS Illegal Memory Access (CUDA Error 700) using the evidence you provide or your connected workload collects. Earlier rank, host or application evidence is needed to distinguish an initiating failure from a downstream report.
What this failure is
NVLS Illegal Memory Access (CUDA Error 700) is a Hardware failure seen during ML training runs. NVLS (NVLink SHARP) offloads collective operations to the NVSwitch hardware. An incompatibility between the NCCL library version, the CUDA toolkit, and the NVIDIA display driver can cause incorrect memory mappings to be passed to the NVSwitch. When the switch attempts to read/write to the GPU memory space via these invalid addresses, it triggers a hard fault (Illegal Address). Common tags: Memory Access Violation.
Is this what broke your run? Paste your log.
You're reading about NVLS Illegal Memory Access (CUDA Error 700). Paste your own traceback and relevant evidence for an investigation of your workload, with a next action or a specific missing fact. A reference entry does not establish your cause. No account or card for the free diagnosis. Review data handling before submitting sensitive logs.
Before uploading, review cloud data handling and local options.
Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.
Why it happens (the mechanism)
A CUDA 700 error usually points to a bug in user-level PyTorch or CUDA code (e.g., an out-of-bounds array access). However, in this case, the user's code is perfectly fine; the memory violation is happening internally within NCCL's interaction with the NVLink switch fabric.
What you'll observe
- NCCL WARN Cuda failure 700 'an illegal memory access was encountered'
- cudaErrorIllegalAddress
- NCCL WARN NVLS error
Common symptoms and what they mean
| Symptom | Why it happens |
|---|---|
| The training script crashes abruptly with a CUDA 700 error. | NVLS (NVLink SHARP) offloads collective operations to the NVSwitch hardware. An incompatibility between the NCCL library version, the CUDA toolkit, and the NVIDIA display driver can cause incorrect memory mappings to be passed to the NVSwitch. When the switch attempts to read/write to the GPU memory space via these invalid addresses, it triggers a hard fault (Illegal Address). |
| Occurs specifically when initiating collective communications over NVLink via the SHARP/NVLS hardware offload. | NVLS (NVLink SHARP) offloads collective operations to the NVSwitch hardware. An incompatibility between the NCCL library version, the CUDA toolkit, and the NVIDIA display driver can cause incorrect memory mappings to be passed to the NVSwitch. When the switch attempts to read/write to the GPU memory space via these invalid addresses, it triggers a hard fault (Illegal Address). |
| The GPU state may become corrupted, requiring a system reboot to clear the CUDA context. | NVLS (NVLink SHARP) offloads collective operations to the NVSwitch hardware. An incompatibility between the NCCL library version, the CUDA toolkit, and the NVIDIA display driver can cause incorrect memory mappings to be passed to the NVSwitch. When the switch attempts to read/write to the GPU memory space via these invalid addresses, it triggers a hard fault (Illegal Address). |
Which systems are affected
- NCCL
- CUDA
- NVLink
- NVIDIA B200
- NVIDIA H100
How to confirm this is the problem
Use this checklist to test the hypothesis against a small reproduction. No single line proves the root cause, so preserve the preceding events and compare one variable at a time.
- ✓Run the script on a single GPU to see if the error disappears (confirming it's a multi-GPU/NCCL issue).
- ✓Disable NVLS via environment variable and observe if the crash stops.
Root cause
- NVLS (NVLink SHARP) offloads collective operations to the NVSwitch hardware. An incompatibility between the NCCL library version, the CUDA toolkit, and the NVIDIA display driver can cause incorrect memory mappings to be passed to the NVSwitch. When the switch attempts to read/write to the GPU memory space via these invalid addresses, it triggers a hard fault (Illegal Address).
The fix and how to prevent it
Searchable error signature
NCCL WARN Cuda failure 700 'an illegal memory access was encountered'
NCCL WARN NVLS errorUse this text as a lookup key in logs and upstream issue trackers. It is not presented as a captured customer log. Confirm the cause from your own preceding events, versions, configuration and the cited references.
The fix and the prevention pattern
The root cause is on this page and stays free. A free account adds the exact remediation steps, saved history, and the fix on every entry in the encyclopedia.
Sign up free. Unlock the full analysisNo credit card. Daily allowance follows verified trust tier. Instant access.
Diagnose this failure in VS Code
Select the traceback or open the failed terminal, then run Denpex locally to see the initiating rank, collateral failures, exact fix, and verification command without uploading the log.
Install the free VS Code extensionCUDA errors in context
CUDA reports errors asynchronously, so the traceback usually points at whatever line synchronised next rather than the one at fault. The hub covers every common CUDA error and how to make it report honestly.
Compare every cuda error side by sideReferences
Don't just read the fix, diagnose your run
The encyclopedia tells you what went wrong. Denpex tells you what went wrong in YOUR training run. With your logs, your config, and your stack.