Skip to content

Commit

Permalink
fix NVTE_UB_WITH_MPI read
Browse files Browse the repository at this point in the history
Signed-off-by: Sangkug Lym <[email protected]>
  • Loading branch information
erhoo82 committed Sep 22, 2024
1 parent 0c74535 commit 8250007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build_tools/pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def setup_pytorch_extension(
# Libraries
library_dirs = []
libraries = []
if os.getenv("NVTE_UB_WITH_MPI"):
if bool(int(os.getenv("NVTE_UB_WITH_MPI"))):
assert (
os.getenv("MPI_HOME") is not None
), "MPI_HOME must be set when compiling with NVTE_UB_WITH_MPI=1"
Expand Down

0 comments on commit 8250007

Please sign in to comment.