Skip to content

Commit e58abeb

Browse files
committed
ci: use CUDA_LAUNCH_BLOCKING
1 parent 83436ee commit e58abeb

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.azure-pipelines/gpu-benchmark.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
steps:
3737
- bash: |
3838
python -m pytest tests/benchmarks -v --durations=0
39-
displayName: 'Testing: benchmarks'
4039
env:
4140
PL_RUNNING_BENCHMARKS: 1
41+
CUDA_LAUNCH_BLOCKING: 1
42+
displayName: 'Testing: benchmarks'

.azure-pipelines/gpu-tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,22 @@ jobs:
6767
python -c "import torch ; mgpu = torch.cuda.device_count() ; assert mgpu >= 2, f'GPU: {mgpu}'"
6868
python requirements/check-avail-strategies.py
6969
python requirements/check-avail-extras.py
70-
displayName: 'Env details'
70+
displayName: 'Env. details'
7171
7272
- bash: bash .actions/pull_legacy_checkpoints.sh
7373
displayName: 'Get legacy checkpoints'
7474

7575
- bash: |
7676
python -m coverage run --source pytorch_lightning -m pytest pytorch_lightning tests --ignore tests/benchmarks -v --junitxml=$(Build.StagingDirectory)/test-results.xml --durations=50
77+
env:
78+
CUDA_LAUNCH_BLOCKING: 1
7779
displayName: 'Testing: standard'
7880
7981
- bash: |
8082
bash tests/standalone_tests.sh
8183
env:
8284
PL_USE_MOCKED_MNIST: "1"
85+
CUDA_LAUNCH_BLOCKING: 1
8386
displayName: 'Testing: standalone'
8487
8588
- bash: |
@@ -115,6 +118,7 @@ jobs:
115118
bash pl_examples/run_examples.sh --trainer.accelerator=gpu --trainer.devices=2 --trainer.strategy=ddp --trainer.precision=16
116119
env:
117120
PL_USE_MOCKED_MNIST: "1"
121+
CUDA_LAUNCH_BLOCKING: 1
118122
displayName: 'Testing: examples'
119123
120124
- bash: |

0 commit comments

Comments
 (0)