File tree Expand file tree Collapse file tree 4 files changed +12
-9
lines changed
docs/source/getting_started Expand file tree Collapse file tree 4 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -74,11 +74,11 @@ jobs:
74
74
- uses : nv-gha-runners/setup-proxy-cache@main
75
75
- name : Setup environment variables
76
76
run : |
77
- echo "LD_LIBRARY_PATH=/usr/include:/usr/lib/x86_64-linux-gnu:/usr/local/tensorrt/targets/x86_64-linux-gnu/lib:${LD_LIBRARY_PATH} " >> $GITHUB_ENV
78
- echo "PATH=/usr/local/tensorrt/targets/x86_64-linux-gnu/bin:${PATH} " >> $GITHUB_ENV
77
+ echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}: /usr/include:/usr/lib/x86_64-linux-gnu:/usr/local/tensorrt/targets/x86_64-linux-gnu/lib" >> $GITHUB_ENV
78
+ echo "PATH=${PATH}: /usr/local/tensorrt/targets/x86_64-linux-gnu/bin" >> $GITHUB_ENV
79
79
- name : Run example tests
80
80
run : |
81
- pip install ".[all ,dev-test]"
81
+ pip install ".[hf ,dev-test]"
82
82
find examples/${{ matrix.EXAMPLE }} -name "requirements.txt" | while read req_file; do pip install -r "$req_file" || exit 1; done
83
83
pytest -s tests/examples/${{ matrix.EXAMPLE }}
84
84
example-tests-non-pr :
Original file line number Diff line number Diff line change @@ -66,11 +66,14 @@ jobs:
66
66
image : nvcr.io/nvidia/pytorch:25.06-py3
67
67
env :
68
68
GIT_DEPTH : 1000 # For correct version for tests/gpu/torch/quantization/plugins/test_megatron.py
69
- LD_LIBRARY_PATH : " /usr/lib/x86_64-linux-gnu:${LD_LIBRARY_PATH}" # Add libcudnn*.so and libnv*.so to path.
70
69
PIP_CONSTRAINT : " " # Disable pip constraint for upgrading packages
71
70
steps : &gpu_steps
72
71
- uses : actions/checkout@v4
73
72
- uses : nv-gha-runners/setup-proxy-cache@main
73
+ - name : Setup environment variables
74
+ run : |
75
+ echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/include:/usr/lib/x86_64-linux-gnu:/usr/local/tensorrt/targets/x86_64-linux-gnu/lib" >> $GITHUB_ENV
76
+ echo "PATH=${PATH}:/usr/local/tensorrt/targets/x86_64-linux-gnu/bin" >> $GITHUB_ENV
74
77
- name : Run gpu tests
75
78
run : pip install tox-current-env && tox -e py312-cuda12-gpu --current-env
76
79
gpu-tests-non-pr :
Original file line number Diff line number Diff line change 34
34
tags : [docker, linux, 2-gpu]
35
35
before_script :
36
36
# Add libcudnn*.so and libnv*.so to path
37
- - export LD_LIBRARY_PATH="/usr/include:/usr/lib/x86_64-linux-gnu:/usr/local/tensorrt/targets/x86_64-linux-gnu/lib:${LD_LIBRARY_PATH} "
37
+ - export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}: /usr/include:/usr/lib/x86_64-linux-gnu:/usr/local/tensorrt/targets/x86_64-linux-gnu/lib"
38
38
# Add trtexec to path
39
- - export PATH="/usr/local/tensorrt/targets/x86_64-linux-gnu/bin:${PATH} "
39
+ - export PATH="${PATH}: /usr/local/tensorrt/targets/x86_64-linux-gnu/bin"
40
40
# Install git-lfs for Daring-Anteater dataset
41
41
- apt-get update && apt-get install -y git-lfs
42
42
- git lfs install --system
@@ -56,7 +56,7 @@ example-torch:
56
56
matrix :
57
57
- EXAMPLE : [llm_distill, llm_sparsity, speculative_decoding]
58
58
script :
59
- - pip install ".[all ,dev-test]"
59
+ - pip install ".[hf ,dev-test]"
60
60
- find examples/$EXAMPLE -name "requirements.txt" | while read req_file; do pip install -r "$req_file" || exit 1; done
61
61
- pytest -s tests/examples/$EXAMPLE
62
62
Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ Environment setup
40
40
41
41
.. code-block :: shell
42
42
43
- export LD_LIBRARY_PATH=" /usr/include:/usr/lib/x86_64-linux-gnu:/usr/local/tensorrt/targets/x86_64-linux-gnu/lib: ${LD_LIBRARY_PATH} "
44
- export PATH=" /usr/local/tensorrt/targets/x86_64-linux-gnu/bin: ${PATH} "
43
+ export LD_LIBRARY_PATH=" ${LD_LIBRARY_PATH} : /usr/include:/usr/lib/x86_64-linux-gnu:/usr/local/tensorrt/targets/x86_64-linux-gnu/lib"
44
+ export PATH=" ${PATH} : /usr/local/tensorrt/targets/x86_64-linux-gnu/bin"
45
45
46
46
You may need to install additional dependencies from the respective examples's `requirements.txt ` file.
47
47
You can’t perform that action at this time.
0 commit comments