|
|
|
@ -36,15 +36,18 @@ endif()
|
|
|
|
|
|
|
|
|
|
register_operators(EXCLUDES warpctc_op conv_fusion_op)
|
|
|
|
|
|
|
|
|
|
# warpctc_cudnn need cudnn 7 above
|
|
|
|
|
# warpctc_op needs cudnn 7 above
|
|
|
|
|
if (WITH_GPU)
|
|
|
|
|
if (${CUDNN_MAJOR_VERSION} VERSION_LESS 7)
|
|
|
|
|
op_library(warpctc_op DEPS dynload_warpctc sequence_padding sequence_scale SRCS warpctc_op.cc warpctc_op.cu.cc)
|
|
|
|
|
else()
|
|
|
|
|
op_library(warpctc_op DEPS dynload_warpctc sequence_padding sequence_scale)
|
|
|
|
|
endif()
|
|
|
|
|
op_library(conv_fusion_op)
|
|
|
|
|
file(APPEND ${pybind_file} "USE_CUDA_ONLY_OP(conv2d_fusion);\n")
|
|
|
|
|
# conv_fusion_op needs cudnn 7 above
|
|
|
|
|
if (NOT ${CUDNN_MAJOR_VERSION} VERSION_LESS 7)
|
|
|
|
|
op_library(conv_fusion_op)
|
|
|
|
|
file(APPEND ${pybind_file} "USE_CUDA_ONLY_OP(conv2d_fusion);\n")
|
|
|
|
|
endif()
|
|
|
|
|
else()
|
|
|
|
|
op_library(warpctc_op DEPS dynload_warpctc sequence_padding sequence_scale)
|
|
|
|
|
endif()
|
|
|
|
|