File tree Expand file tree Collapse file tree 6 files changed +15
-11
lines changed
docs/source/getting_started Expand file tree Collapse file tree 6 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -74,11 +74,11 @@ jobs:
7474 - uses : nv-gha-runners/setup-proxy-cache@main
7575 - name : Setup environment variables
7676 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
7979 - name : Run example tests
8080 run : |
81- pip install ".[all ,dev-test]"
81+ pip install ".[hf ,dev-test]"
8282 find examples/${{ matrix.EXAMPLE }} -name "requirements.txt" | while read req_file; do pip install -r "$req_file" || exit 1; done
8383 pytest -s tests/examples/${{ matrix.EXAMPLE }}
8484 example-tests-non-pr :
Original file line number Diff line number Diff line change @@ -66,11 +66,14 @@ jobs:
6666 image : nvcr.io/nvidia/pytorch:25.06-py3
6767 env :
6868 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.
7069 PIP_CONSTRAINT : " " # Disable pip constraint for upgrading packages
7170 steps : &gpu_steps
7271 - uses : actions/checkout@v4
7372 - 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
7477 - name : Run gpu tests
7578 run : pip install tox-current-env && tox -e py312-cuda12-gpu --current-env
7679 gpu-tests-non-pr :
Original file line number Diff line number Diff line change 3434 tags : [docker, linux, 2-gpu]
3535 before_script :
3636 # 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"
3838 # 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"
4040 # Install git-lfs for Daring-Anteater dataset
4141 - apt-get update && apt-get install -y git-lfs
4242 - git lfs install --system
@@ -56,7 +56,7 @@ example-torch:
5656 matrix :
5757 - EXAMPLE : [llm_distill, llm_sparsity, speculative_decoding]
5858 script :
59- - pip install ".[all ,dev-test]"
59+ - pip install ".[hf ,dev-test]"
6060 - find examples/$EXAMPLE -name "requirements.txt" | while read req_file; do pip install -r "$req_file" || exit 1; done
6161 - pytest -s tests/examples/$EXAMPLE
6262
Original file line number Diff line number Diff line change @@ -40,8 +40,9 @@ Environment setup
4040
4141 .. code-block :: shell
4242
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 PIP_CONSTRAINT=" "
44+ export LD_LIBRARY_PATH=" ${LD_LIBRARY_PATH} :/usr/include:/usr/lib/x86_64-linux-gnu:/usr/local/tensorrt/targets/x86_64-linux-gnu/lib"
45+ export PATH=" ${PATH} :/usr/local/tensorrt/targets/x86_64-linux-gnu/bin"
4546
4647 You may need to install additional dependencies from the respective examples's `requirements.txt ` file.
4748
Original file line number Diff line number Diff line change 1- cuda-python
1+ cuda-python < 13
22opencv-python >= 4.8.1.78 ,< 4.12.0.88
33peft >= 0.10.0
44polygraphy == 0.49.9
Original file line number Diff line number Diff line change 1- cuda-python
1+ cuda-python < 13
22diffusers <= 0.34.0
33nvtx
44onnx_graphsurgeon
You can’t perform that action at this time.
0 commit comments