Skip to content

Commit 0d6804c

Browse files
kshitij12345t-vi
andauthored
TE: Fix cudnn.h not found (#2536)
Co-authored-by: Thomas Viehmann <[email protected]>
1 parent 862163d commit 0d6804c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.lightning/workflows/transformer-engine.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ parametrize:
1111
matrix:
1212
test_file:
1313
- test_transformer_engine_executor.py
14-
- test_transformer_engine_v2_executor.py
14+
- test_transformer_engine_v1_executor.py
1515

1616
run: |
1717
whereis nvidia
@@ -22,6 +22,8 @@ run: |
2222
# conda install -c conda-forge libstdcxx-ng
2323
# sudo apt install libstdc++6 libstdc++-*-dev
2424
pip install . -U -q -r requirements/test.txt
25-
pip install --no-build-isolation 'transformer_engine[pytorch]'
25+
# Need to explicitly point to cudnn.h as it is installed at a non-standard location
26+
# Ref: https://github.com/NVIDIA/TransformerEngine/issues/918#issuecomment-2187703769
27+
CPLUS_INCLUDE_PATH="/usr/local/lib/python3.10/dist-packages/nvidia/cudnn/include/" pip install --no-build-isolation 'transformer_engine[pytorch]'
2628
pip list # for debugging purposes
27-
pytest tests/${test_file} -v -rs
29+
pytest thunder/tests/${test_file} -v -rs

0 commit comments

Comments
 (0)