NVIDIA / TransformerEngine

A library for accelerating Transformer models on NVIDIA GPUs, including using 8-bit floating point (FP8) precision on Hopper and Ada GPUs, to provide better performance with lower memory utilization in both training and inference.
https://docs.nvidia.com/deeplearning/transformer-engine/user-guide/index.html
Apache License 2.0
1.61k stars 256 forks source link

Fix local cpp tests after inplace build #911

Closed ksivaman closed 3 weeks ago

ksivaman commented 3 weeks ago

Description

877 introduced a bug when building the cpp tests after an inplace build. To repro, run:

pip install --verbose -e .
cd tests/cpp && mkdir build && cd build && cmake ..

Error:

CMake Error at CMakeLists.txt:29 (find_library):
  Could not find TE_LIB using the following names: transformer_engine

Type of change

Changes

Please list the changes introduced in this PR:

Adds the top level TE location to the search path in the test build.

Checklist:

ksivaman commented 3 weeks ago

/te-ci