@@ -82,10 +82,11 @@ function(op_library TARGET)
82
82
if (${cc_srcs_len} EQUAL 0 )
83
83
message (FATAL_ERROR "The op library ${TARGET} should contains at least one .cc file" )
84
84
endif ()
85
-
86
- #remove windows unsupported op
87
85
if (WIN32 )
88
- foreach (windows_unsupport_op "nccl_op" "gen_nccl_id_op" "warpctc_op" )
86
+ # remove windows unsupported op, because windows has no nccl, no warpctc such ops.
87
+ foreach (windows_unsupport_op "nccl_op" "gen_nccl_id_op" "warpctc_op" "hierarchical_sigmoid_op"
88
+ "crf_decoding_op" "select_op" "lstmp_op" "gru_op" "fusion_gru_op" "lstm_op" "fusion_lstm_op" "cumsum_op"
89
+ "channel_send_op" "channel_create_op" "channel_close_op" "channel_recv_op" )
89
90
if ("${TARGET} " STREQUAL "${windows_unsupport_op} " )
90
91
return ()
91
92
endif ()
@@ -281,10 +282,12 @@ op_library(array_to_lod_tensor_op DEPS lod_rank_table_op)
281
282
op_library (max_sequence_len_op DEPS lod_rank_table )
282
283
op_library (sequence_conv_op DEPS context_project )
283
284
op_library (sequence_pool_op DEPS sequence_pooling )
285
+ if (NOT WIN32 )
284
286
op_library (lstm_op DEPS sequence2batch lstm_compute )
285
287
op_library (hierarchical_sigmoid_op DEPS matrix_bit_code )
286
288
op_library (lstmp_op DEPS sequence2batch lstm_compute )
287
289
op_library (gru_op DEPS sequence2batch gru_compute )
290
+ endif (NOT WIN32 )
288
291
op_library (recurrent_op DEPS executor )
289
292
op_library (warpctc_op DEPS dynload_warpctc sequence_padding sequence_scale )
290
293
op_library (cos_sim_op DEPS cos_sim_functor )
@@ -297,7 +300,6 @@ op_library(sequence_pad_op DEPS sequence_padding)
297
300
op_library (unstack_op DEPS stack_op )
298
301
op_library (fake_quantize_op DEPS memory )
299
302
op_library (fusion_lstm_op DEPS cpu_lstm_compute )
300
-
301
303
if (WITH_GPU )
302
304
op_library (conv_op DEPS vol2col depthwise_conv im2col )
303
305
op_library (layer_norm_op DEPS cub )
0 commit comments