Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
a1eb21e7
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2298
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a1eb21e7
编写于
12月 05, 2018
作者:
T
tensor-tang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refine names
上级
b523787f
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
9 addition
and
7 deletion
+9
-7
paddle/fluid/operators/jitkernels/CMakeLists.txt
paddle/fluid/operators/jitkernels/CMakeLists.txt
+4
-2
paddle/fluid/operators/jitkernels/jitcode/jitcode.h
paddle/fluid/operators/jitkernels/jitcode/jitcode.h
+1
-1
paddle/fluid/operators/jitkernels/kernel_pool.cc
paddle/fluid/operators/jitkernels/kernel_pool.cc
+1
-1
paddle/fluid/operators/jitkernels/kernel_pool.h
paddle/fluid/operators/jitkernels/kernel_pool.h
+0
-0
paddle/fluid/operators/jitkernels/more/mkl/mkl.h
paddle/fluid/operators/jitkernels/more/mkl/mkl.h
+1
-1
paddle/fluid/operators/jitkernels/registry.h
paddle/fluid/operators/jitkernels/registry.h
+1
-1
paddle/fluid/operators/jitkernels/test.cc
paddle/fluid/operators/jitkernels/test.cc
+1
-1
未找到文件。
paddle/fluid/operators/jitkernels/CMakeLists.txt
浏览文件 @
a1eb21e7
...
...
@@ -7,7 +7,9 @@
set
(
JIT_KERNEL_DEPS cpu_info cblas gflags enforce place
)
cc_library
(
jit_kernel_base SRCS kernels.cc jitcode_base.cc DEPS
${
JIT_KERNEL_DEPS
}
)
file
(
GLOB jit_kernel_cc_srcs RELATIVE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
"
"*.cc"
)
list
(
REMOVE_ITEM jit_kernel_cc_srcs jit_test.cc
)
cc_library
(
jit_kernel_base SRCS
${
jit_kernel_cc_srcs
}
DEPS
${
JIT_KERNEL_DEPS
}
)
add_subdirectory
(
refer
)
add_subdirectory
(
more
)
...
...
@@ -15,5 +17,5 @@ if(WITH_XBYAK)
add_subdirectory
(
jitcode
)
endif
()
cc_library
(
jit_kernel SRCS
kernels.cc
DEPS
${
JIT_KERNEL_DEPS
}
)
cc_library
(
jit_kernel SRCS
${
jit_kernel_cc_srcs
}
DEPS
${
JIT_KERNEL_DEPS
}
)
cc_test
(
jit_kernel_test SRCS test.cc DEPS jit_kernel
)
paddle/fluid/operators/jitkernels/jitcode/jitcode.h
浏览文件 @
a1eb21e7
...
...
@@ -92,7 +92,7 @@ class JitCode : public JitBase, public Xbyak::CodeGenerator {
for
(
int
i
=
0
;
i
<
num_g_abi_regs
;
++
i
)
{
push
(
Xbyak
::
Reg64
(
g_abi_regs
[
i
]));
}
if
(
platform
::
jit
::
MayIUse
(
platform
::
jit
::
avx512f
))
{
if
(
platform
::
MayIUse
(
platform
::
avx512f
))
{
mov
(
reg_EVEX_max_8b_offt
,
2
*
EVEX_max_8b_offt
);
}
}
...
...
paddle/fluid/operators/jitkernels/kernel
s
.cc
→
paddle/fluid/operators/jitkernels/kernel
_pool
.cc
浏览文件 @
a1eb21e7
...
...
@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License. */
#include "paddle/fluid/operators/jitkernels/kernel
s
.h"
#include "paddle/fluid/operators/jitkernels/kernel
_pool
.h"
#include <memory> // for shared_ptr
#include <string>
#include <unordered_map>
...
...
paddle/fluid/operators/jitkernels/kernel
s
.h
→
paddle/fluid/operators/jitkernels/kernel
_pool
.h
浏览文件 @
a1eb21e7
文件已移动
paddle/fluid/operators/jitkernels/more/mkl/mkl.h
浏览文件 @
a1eb21e7
...
...
@@ -41,7 +41,7 @@ class VMulKernel
VMulKernel
()
{
this
->
func
=
VMul
<
T
>
;
}
bool
UseMe
(
int
d
)
const
override
{
if
(
std
::
is_same
<
T
,
float
>::
value
)
{
return
platform
::
jit
::
MayIUse
(
platform
::
jit
::
avx512f
)
&&
d
>
512
;
return
platform
::
MayIUse
(
platform
::
avx512f
)
&&
d
>
512
;
}
else
{
return
true
;
}
...
...
paddle/fluid/operators/jitkernels/registry.h
浏览文件 @
a1eb21e7
...
...
@@ -18,7 +18,7 @@
#include <tuple>
#include <type_traits>
#include "paddle/fluid/operators/jitkernels/kernel_base.h"
#include "paddle/fluid/operators/jitkernels/kernel
s
.h"
#include "paddle/fluid/operators/jitkernels/kernel
_pool
.h"
#include "paddle/fluid/platform/place.h"
#include "paddle/fluid/platform/variant.h" // for UNUSED
...
...
paddle/fluid/operators/jitkernels/test.cc
浏览文件 @
a1eb21e7
...
...
@@ -19,7 +19,7 @@
#include "gflags/gflags.h"
#include "glog/logging.h"
#include "gtest/gtest.h"
#include "paddle/fluid/operators/jitkernels/kernel
s
.h"
#include "paddle/fluid/operators/jitkernels/kernel
_pool
.h"
// TODO(TJ): remove me
#include "paddle/fluid/operators/jitkernels/registry.h"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录