Skip to content

Commit 3452209

Browse files
committed
See if we can use tcmalloc in test runner
1 parent 8bf63b6 commit 3452209

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,16 @@ jobs:
3636
run: pip install --no-cache-dir torch==${{ matrix.torch }} torchvision==${{ matrix.torchvision }}
3737
- name: Install torch on ubuntu
3838
if: startsWith(matrix.os, 'ubuntu')
39-
run: pip install --no-cache-dir torch==${{ matrix.torch }}+cpu torchvision==${{ matrix.torchvision }}+cpu -f https://download.pytorch.org/whl/torch_stable.html
39+
run: |
40+
pip install --no-cache-dir torch==${{ matrix.torch }}+cpu torchvision==${{ matrix.torchvision }}+cpu -f https://download.pytorch.org/whl/torch_stable.html
41+
sudo apt update
42+
sudo apt install -y google-perftools
4043
- name: Install requirements
4144
run: |
4245
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
4346
pip install --no-cache-dir git+https://github.com/mapillary/inplace_abn.git@v1.0.12
4447
- name: Run tests
48+
env:
49+
LD_PRELOAD: /usr/lib/x86_64-linux-gnu/libtcmalloc.so.4
4550
run: |
4651
pytest -vv --durations=0 ./tests

0 commit comments

Comments
 (0)