Skip to content

Commit

Permalink
Merge branch 'main' into fp8_cuda_graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
ksivaman authored Apr 10, 2024
2 parents 4cbda4a + 1b20f2d commit 020a870
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,12 @@ def setup_pytorch_extension() -> setuptools.Extension:
sources = [
src_dir / "common.cu",
src_dir / "ts_fp8_op.cpp",
# We need to compile system.cpp because the pytorch extension uses
# transformer_engine::getenv. This is a workaround to avoid direct
# linking with libtransformer_engine.so, as the pre-built PyTorch
# wheel from conda or PyPI was not built with CXX11_ABI, and will
# cause undefined symbol issues.
root_path / "transformer_engine" / "common" / "util" / "system.cpp",
] + \
_all_files_in_dir(extensions_dir)

Expand Down

0 comments on commit 020a870

Please sign in to comment.