File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -188,14 +188,21 @@ else()
188
188
189
189
include_directories (
190
190
${CUDA_INCLUDE_DIRS}
191
+ ${CUDNN_ROOT_DIR} /include
191
192
)
192
193
find_library (CUDNN_LIB cudnn HINTS
193
194
${CUDA_TOOLKIT_ROOT_DIR} ${CUDNN_ROOT_DIR} PATH_SUFFIXES lib64 lib )
194
195
find_library (CUBLAS_LIB cublas HINTS
195
196
${CUDA_TOOLKIT_ROOT_DIR} PATH_SUFFIXES lib64 lib lib/stubs )
196
-
197
- find_library (CUBLASLT_LIB cublasLt HINTS
198
- ${CUDA_TOOLKIT_ROOT_DIR} PATH_SUFFIXES lib64 lib lib/stubs )
197
+ # CUBLASLT libraries are only available in CUDA versions > 10. Check for CUDA version here and
198
+ # remove dependency on the libarary and unset BERT_GENCODES.
199
+ if (CUDA_VERSION VERSION_LESS_EQUAL 10.0 )
200
+ message (WARNING "Detected CUDA version is <= 10.0! Removing BERT plugins from compilation list." )
201
+ unset (BERT_GENCODES )
202
+ else ()
203
+ find_library (CUBLASLT_LIB cublasLt HINTS
204
+ ${CUDA_TOOLKIT_ROOT_DIR} PATH_SUFFIXES lib64 lib lib/stubs )
205
+ endif ()
199
206
if (BUILD_PARSERS )
200
207
configure_protobuf (${PROTOBUF_VERSION} )
201
208
endif ()
You can’t perform that action at this time.
0 commit comments