File tree Expand file tree Collapse file tree 3 files changed +2
-9
lines changed
transformer_engine/common Expand file tree Collapse file tree 3 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -70,10 +70,6 @@ def setup_common_extension() -> CMakeExtension:
7070
7171 if bool (int (os .getenv ("NVTE_WITH_CUBLASMP" , "0" ))):
7272 cmake_flags .append ("-DNVTE_WITH_CUBLASMP=ON" )
73- cublasmp_dir = os .getenv ("CUBLASMP_HOME" ) or metadata .distribution (
74- f"nvidia-cublasmp-cu{ cuda_version ()[0 ]} "
75- ).locate_file (f"nvidia/cublasmp/cu{ cuda_version ()[0 ]} " )
76- cmake_flags .append (f"-DCUBLASMP_DIR={ cublasmp_dir } " )
7773 nvshmem_dir = os .getenv ("NVSHMEM_HOME" ) or metadata .distribution (
7874 f"nvidia-nvshmem-cu{ cuda_version ()[0 ]} "
7975 ).locate_file ("nvidia/nvshmem" )
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ find_library(NCCL_LIB
1212 NAMES nccl libnccl
1313 PATH_SUFFIXES lib
1414 REQUIRED)
15- target_include_directories (test_comm_gemm PRIVATE ${MPI_CXX_INCLUDE_PATH} $ENV{CUBLASMP_HOME} / include )
15+ target_include_directories (test_comm_gemm PRIVATE ${MPI_CXX_INCLUDE_PATH} )
1616target_link_libraries (test_comm_gemm PUBLIC CUDA::cuda_driver CUDA::cudart GTest::gtest ${TE_LIB} CUDA::nvrtc CUDNN::cudnn MPI::MPI_CXX ${NCCL_LIB} OpenMP::OpenMP_CXX)
1717
1818include (GoogleTest)
Original file line number Diff line number Diff line change @@ -152,10 +152,9 @@ endif()
152152option (NVTE_WITH_CUBLASMP "Use cuBLASMp for tensor parallel GEMMs" OFF )
153153if (NVTE_WITH_CUBLASMP)
154154 target_compile_definitions (transformer_engine PRIVATE NVTE_WITH_CUBLASMP)
155- target_include_directories (transformer_engine PRIVATE ${CUBLASMP_DIR} / include ${ NVSHMEM_DIR} /include )
155+ target_include_directories (transformer_engine PRIVATE ${NVSHMEM_DIR} /include )
156156 find_library (CUBLASMP_LIB
157157 NAMES cublasmp libcublasmp
158- PATHS ${CUBLASMP_DIR}
159158 PATH_SUFFIXES lib
160159 REQUIRED)
161160 find_library (NVSHMEM_HOST_LIB
@@ -164,8 +163,6 @@ if (NVTE_WITH_CUBLASMP)
164163 PATH_SUFFIXES lib
165164 REQUIRED)
166165 target_link_libraries (transformer_engine PUBLIC ${CUBLASMP_LIB} ${NVSHMEM_HOST_LIB} )
167- message (STATUS "Using cuBLASMp at: ${CUBLASMP_DIR} " )
168- message (STATUS "Using nvshmem at: ${NVSHMEM_DIR} " )
169166endif ()
170167
171168# Hack to enable dynamic loading in cuDNN frontend
You can’t perform that action at this time.
0 commit comments