You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Use env var for these for now for prototyping purposes
989
-
set(USE_NVSHMEM $ENV{USE_NVSHMEM}CACHEBOOL"Whether to build with NVSHMEM support")
988
+
# Compile with NVSHMEM
989
+
# Default value of `USE_NVSHMEM` is set in CMakeLists.txt under root, to ON.
990
990
# If user has specified NVSHMEM_HOME, we use it;
991
991
# Otherwise, NVSHMEM_HOME is auto detected in tools/setup_helpers/cmake.py
992
992
if($ENV{NVSHMEM_HOME})
993
993
set(NVSHMEM_HOME $ENV{NVSHMEM_HOME}CACHEPATH"Path to NVSHMEM build dir")
994
+
else()
995
+
message(WARNING "NVSHMEM_HOME not found. Building without NVSHMEM.")
994
996
endif()
995
997
996
-
if(USE_NVSHMEM ANDNOTDEFINED NVSHMEM_HOME)
997
-
message(WARNING "USE_NVSHMEM set to 1 but NVSHMEM_HOME not found. Please run `pip install nvidia-nvshmem-<version>`, or set NVSHMEM_HOME to the NVSHMEM build dir")
998
-
# Disable nvshmem if NVSHMEM_HOME is not found
999
-
set(USE_NVSHMEM FALSECACHEBOOL"Whether to build with NVSHMEM support")
1000
-
endif()
1001
-
1002
-
if(USE_NVSHMEM)
1003
-
message("Building with NVSHMEM support: '${NVSHMEM_HOME}'")
998
+
if(USE_NVSHMEM ANDDEFINED NVSHMEM_HOME)
999
+
message(STATUS"Building with NVSHMEM support: '${NVSHMEM_HOME}'")
0 commit comments