File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ limitations under the License. */
16
16
#include " paddle/fluid/framework/op_registry.h"
17
17
#include " paddle/fluid/operators/detail/safe_ref.h"
18
18
#include " paddle/fluid/platform/device_context.h"
19
+ #include " paddle/fluid/platform/port.h"
19
20
20
21
namespace paddle {
21
22
namespace operators {
Original file line number Diff line number Diff line change
1
+ if (NOT WIN32 )
1
2
add_subdirectory (detail )
3
+ endif (NOT WIN32 )
2
4
3
5
function (math_library TARGET )
4
6
# math_library is a function to create math library.
@@ -38,9 +40,13 @@ math_library(context_project DEPS im2col math_function)
38
40
math_library (cross_entropy )
39
41
math_library (cos_sim_functor )
40
42
math_library (depthwise_conv )
41
- math_library (gru_compute DEPS activation_functions math_function )
42
43
math_library (im2col )
44
+
45
+ if (NOT WIN32 ) # windows do not support avx functions yet.
46
+ math_library (gru_compute DEPS activation_functions math_function )
43
47
math_library (lstm_compute DEPS activation_functions )
48
+ endif (NOT WIN32 )
49
+
44
50
cc_library (blas SRCS blas.cc DEPS cblas framework_proto device_context )
45
51
math_library (math_function DEPS blas )
46
52
math_library (maxouting )
@@ -51,7 +57,9 @@ math_library(sequence_padding)
51
57
math_library (sequence_pooling DEPS math_function )
52
58
math_library (sequence_scale )
53
59
math_library (softmax DEPS math_function )
60
+ if (NOT WIN32 )
54
61
math_library (matrix_bit_code )
62
+ endif (NOT WIN32 )
55
63
math_library (unpooling )
56
64
math_library (vol2col )
57
65
You can’t perform that action at this time.
0 commit comments