Commit 05f0e50
Bhanu Teja Goshikonda
test(pytorch): move test_import_gpu cases to single_gpu suite
test_import_gpu[transformer_engine] fails on the CPU-only default-runner
that unit-test runs on because TE 2.17 dlopens libcuda.so.1 at import
time; libcuda is only mounted into containers via nvidia-container-cli
when a GPU is present.
The test is correctly gated with @pytest.mark.skipif(not IS_CUDA) — that
gate is about the IMAGE variant (CUDA vs CPU), not about the test
runner's GPU availability. Moving both parametrized cases (flash_attn,
transformer_engine) into single_gpu/ where the workflow runs on
x86-g6xl-runner with --gpus all gives them a real driver mount at
import time.
flash_attn passed on the CPU fleet only because it defers libcuda dlopen
until the first CUDA call — the import itself succeeded. Moving it too
keeps GPU-only import checks in a single suite and avoids relying on
that lazy-loading behavior.
The IS_CUDA skip is preserved as a belt-and-suspenders guard for any
future CPU-variant coverage that reuses the single_gpu suite.
Unit suite retains COMMON_PACKAGES (torch, torchvision, torchaudio,
deepspeed, boto3, requests, yaml, packaging) — none of which need a
GPU driver at import.1 parent af4e110 commit 05f0e50
2 files changed
Lines changed: 26 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | | - | |
9 | | - | |
10 | 7 | | |
11 | 8 | | |
12 | 9 | | |
| |||
18 | 15 | | |
19 | 16 | | |
20 | 17 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 18 | | |
27 | 19 | | |
28 | 20 | | |
29 | 21 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
0 commit comments