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:
70
70
71
71
if bool (int (os .getenv ("NVTE_WITH_CUBLASMP" , "0" ))):
72
72
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 } " )
77
73
nvshmem_dir = os .getenv ("NVSHMEM_HOME" ) or metadata .distribution (
78
74
f"nvidia-nvshmem-cu{ cuda_version ()[0 ]} "
79
75
).locate_file ("nvidia/nvshmem" )
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ find_library(NCCL_LIB
12
12
NAMES nccl libnccl
13
13
PATH_SUFFIXES lib
14
14
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} )
16
16
target_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)
17
17
18
18
include (GoogleTest)
Original file line number Diff line number Diff line change @@ -153,10 +153,9 @@ endif()
153
153
option (NVTE_WITH_CUBLASMP "Use cuBLASMp for tensor parallel GEMMs" OFF )
154
154
if (NVTE_WITH_CUBLASMP)
155
155
target_compile_definitions (transformer_engine PRIVATE NVTE_WITH_CUBLASMP)
156
- target_include_directories (transformer_engine PRIVATE ${CUBLASMP_DIR} / include ${ NVSHMEM_DIR} /include )
156
+ target_include_directories (transformer_engine PRIVATE ${NVSHMEM_DIR} /include )
157
157
find_library (CUBLASMP_LIB
158
158
NAMES cublasmp libcublasmp
159
- PATHS ${CUBLASMP_DIR}
160
159
PATH_SUFFIXES lib
161
160
REQUIRED)
162
161
find_library (NVSHMEM_HOST_LIB
@@ -165,8 +164,6 @@ if (NVTE_WITH_CUBLASMP)
165
164
PATH_SUFFIXES lib
166
165
REQUIRED)
167
166
target_link_libraries (transformer_engine PUBLIC ${CUBLASMP_LIB} ${NVSHMEM_HOST_LIB} )
168
- message (STATUS "Using cuBLASMp at: ${CUBLASMP_DIR} " )
169
- message (STATUS "Using nvshmem at: ${NVSHMEM_DIR} " )
170
167
endif ()
171
168
172
169
# Hack to enable dynamic loading in cuDNN frontend
You can’t perform that action at this time.
0 commit comments