提交 cb9ebeda 编写于 作者: L liaogang

Remove ostream and add intrin header file

上级 bf534270
......@@ -14,6 +14,8 @@ limitations under the License. */
#ifdef _WIN32
#include <intrin.h>
/// for MSVC
#define CPUID(info, x) __cpuidex(info, x, 0)
......@@ -49,7 +51,7 @@ SIMDFlags::SIMDFlags() {
simd_flags_ |= cpuInfo[2] & (1 << 16) ? SIMD_FMA4 : SIMD_NONE;
}
SIMDFlags* SIMDFlags::instance() {
const SIMDFlags* SIMDFlags::instance() {
static SIMDFlags instance;
return &instance;
}
......
......@@ -11,7 +11,6 @@ limitations under the License. */
#pragma once
#include <iostream>
#include "DisableCopy.h"
namespace paddle {
......@@ -22,7 +21,7 @@ public:
SIMDFlags();
static SIMDFlags* instance();
static const SIMDFlags* instance();
inline bool isSSE() const { return simd_flags_ & SIMD_SSE; }
inline bool isSSE2() const { return simd_flags_ & SIMD_SSE2; }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册