CMakeLists.txt 1.9 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
list(
  APPEND
  TRT_FILES
  trt_plugin.cc
  split_op_plugin.cu
  elementwise_op_plugin.cu
  prelu_op_plugin.cu
  gelu_op_plugin.cu
  pool_op_plugin.cu
  swish_op_plugin.cu
11
  group_norm_op_plugin.cu
12 13 14 15 16 17 18 19 20 21 22 23 24 25
  layer_norm_op_plugin.cu
  instance_norm_op_plugin.cu
  qkv_to_context_plugin.cu
  hard_swish_op_plugin.cu
  stack_op_plugin.cu
  anchor_generator_op_plugin.cu
  yolo_box_op_plugin.cu
  yolo_box_head_op_plugin.cu
  roi_align_op_plugin.cu
  gather_nd_op_plugin.cu
  mish_op_plugin.cu
  pool3d_op_plugin.cu
  deformable_conv_op_plugin.cu
  matmul_op_int8_plugin.cu
26
  multihead_matmul_roformer_plugin.cu
27
  transformer_input_output_convert_plugin.cu
28
  remove_padding_plugin.cu
29 30
  recover_padding_plugin.cu
  c_allreduce_op_plugin.cu
31
  preln_residual_bias_plugin.cu
W
wenbin 已提交
32
  fused_token_prune_op_plugin.cu
W
weishengying 已提交
33
  layernorm_shift_partition_op.cu
W
Wang Bojun 已提交
34
  reverse_roll_op_plugin.cu
W
wenbin 已提交
35
  prelnlayernorm_shift_partition_op.cu
W
Wang Bojun 已提交
36
  merge_layernorm_op_plugin.cu
W
wenbin 已提交
37
  skip_merge_layernorm_op_plugin.cu
38
  generic_plugin.cu
39 40
  lookup_table.cu
  many_emb_layernorm_plugin.cu
41
  many_emb_layernorm_kernel.cu)
W
wenbin 已提交
42

43
if(${TENSORRT_MAJOR_VERSION} GREATER_EQUAL 7)
44
  list(APPEND TRT_FILES many_emb_layernorm_varseqlen_plugin.cu
45 46
       many_emb_layernorm_varseqlen_kernel_mtron.cu
       many_emb_layernorm_varseqlen_kernel_hface.cu)
47
endif()
48 49 50 51 52

if(CUSPARSELT_FOUND AND ${TENSORRT_MAJOR_VERSION} GREATER_EQUAL 8)
  list(APPEND TRT_FILES spmm_plugin.cu)
endif()

53 54
nv_library(
  tensorrt_plugin
55
  SRCS ${TRT_FILES}
W
weishengying 已提交
56 57 58 59 60 61 62
  DEPS enforce
       tensorrt_engine
       prelu
       tensor
       bert_encoder_functor
       tensorrt_dynamic_shape_infermeta_factory
       tensorrt_plugin_arg_mapping_context)
63

64 65 66 67
nv_test(
  test_split_plugin
  SRCS test_split_plugin.cc
  DEPS paddle_framework ${GLOB_OPERATOR_DEPS} tensorrt_plugin)
68 69 70 71 72 73 74

if(NOT WIN32)
  nv_test(
    test_fused_token_prune_plugin
    SRCS test_fused_token_prune_plugin.cc
    DEPS paddle_framework ${GLOB_OPERATOR_DEPS} tensorrt_plugin)
endif()