Skip to content

Commit c328071

Browse files
erhoo82ksivaman
authored andcommitted
fix NVTE_UB_WITH_MPI read (#1194)
* fix NVTE_UB_WITH_MPI read Signed-off-by: Sangkug Lym <[email protected]> * Add default value Signed-off-by: Sangkug Lym <[email protected]> --------- Signed-off-by: Sangkug Lym <[email protected]> Co-authored-by: Kirthi Shankar Sivamani <[email protected]>
1 parent 1c209c9 commit c328071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_tools/pytorch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def setup_pytorch_extension(
8888
# Libraries
8989
library_dirs = []
9090
libraries = []
91-
if os.getenv("NVTE_UB_WITH_MPI"):
91+
if bool(int(os.getenv("NVTE_UB_WITH_MPI", 0))):
9292
assert (
9393
os.getenv("MPI_HOME") is not None
9494
), "MPI_HOME must be set when compiling with NVTE_UB_WITH_MPI=1"

0 commit comments

Comments
 (0)