We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0c8397 commit c9730d3Copy full SHA for c9730d3
paddle/fluid/platform/init.cc
@@ -116,6 +116,7 @@ void InitDevices(bool init_p2p, const std::vector<int> devices) {
116
platform::SetNumThreads(FLAGS_paddle_num_threads);
117
#endif
118
119
+#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__OSX__)
120
if (platform::jit::MayIUse(platform::jit::avx)) {
121
#ifndef __AVX__
122
LOG(WARNING) << "AVX is available, Please re-compile on local machine";
@@ -157,8 +158,9 @@ void InitDevices(bool init_p2p, const std::vector<int> devices) {
157
158
AVX_GUIDE(AVX, NonAVX);
159
}
160
-
161
#undef AVX_GUIDE
162
+
163
+#endif
164
165
166
void InitGLOG(const std::string &prog_name) {
0 commit comments