Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
FluidDoc
提交
06bb059b
F
FluidDoc
项目概览
PaddlePaddle
/
FluidDoc
通知
5
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
23
列表
看板
标记
里程碑
合并请求
111
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
FluidDoc
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
23
Issue
23
列表
看板
标记
里程碑
合并请求
111
合并请求
111
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
06bb059b
编写于
10月 31, 2019
作者:
Q
qingqing01
提交者:
GitHub
10月 31, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update custom_op doc (#1572) (#1573)
上级
d34057bd
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
16 deletion
+12
-16
doc/fluid/advanced_usage/development/new_op/custom_op.md
doc/fluid/advanced_usage/development/new_op/custom_op.md
+12
-16
未找到文件。
doc/fluid/advanced_usage/development/new_op/custom_op.md
浏览文件 @
06bb059b
...
@@ -251,29 +251,25 @@ lib_dir=$( python -c 'import paddle; print(paddle.sysconfig.get_lib())' )
...
@@ -251,29 +251,25 @@ lib_dir=$( python -c 'import paddle; print(paddle.sysconfig.get_lib())' )
echo $include_dir
echo $include_dir
echo $lib_dir
echo $lib_dir
# PaddlePaddel >=1.6.1, 仅需要include ${include_dir} 和 ${include_dir}/third_party
nvcc relu_op.cu -c -o relu_op.cu.o -ccbin cc -DPADDLE_WITH_CUDA -DEIGEN_USE_GPU -DPADDLE_USE_DSO -Xcompiler -fPIC -std=c++11 -Xcompiler -fPIC -w --expt-relaxed-constexpr -O3 -DNVCC \
nvcc relu_op.cu -c -o relu_op.cu.o -ccbin cc -DPADDLE_WITH_CUDA -DEIGEN_USE_GPU -DPADDLE_USE_DSO -Xcompiler -fPIC -std=c++11 -Xcompiler -fPIC -w --expt-relaxed-constexpr -O3 -DNVCC \
-I ${include_dir}/third_party/install/gflags/include \
-I ${include_dir}/third_party/install/glog/include \
-I ${include_dir}/third_party/install/protobuf/include \
-I ${include_dir}/third_party/install/xxhash/include \
-I ${include_dir}/third_party/boost \
-I ${include_dir}/third_party/eigen3 \
-I ${include_dir}/third_party/dlpack/include \
-I ${include_dir}/third_party/threadpool/src/extern_threadpool \
-I ${include_dir} \
-I ${include_dir} \
-I ${include_dir}/third_party \
g++ relu_op.cc relu_op.cu.o -o relu2_op.so -shared -fPIC -std=c++11 -O3 \
g++ relu_op.cc relu_op.cu.o -o relu2_op.so -shared -fPIC -std=c++11 -O3 \
-I ${include_dir}/third_party/install/protobuf/include \
-I ${include_dir}/third_party/install/glog/include \
-I ${include_dir}/third_party/install/gflags/include \
-I ${include_dir}/third_party/install/xxhash/include \
-I ${include_dir}/third_party/install/zlib/include \
-I ${include_dir}/third_party/boost \
-I ${include_dir}/third_party/eigen3 \
-I ${include_dir}/third_party/dlpack/include \
-I ${include_dir} \
-I ${include_dir} \
-I ${include_dir}/third_party \
-L /usr/local/cuda/lib64 \
-L /usr/local/cuda/lib64 \
-L ${lib_dir} -lpaddle_framework -lcudart
-L ${lib_dir} -lpaddle_framework -lcudart
# PaddlePaddel 1.6.0, 需要include的third_party如下:
# -I ${include_dir}/third_party/install/protobuf/include \
# -I ${include_dir}/third_party/install/glog/include \
# -I ${include_dir}/third_party/install/gflags/include \
# -I ${include_dir}/third_party/install/xxhash/include \
# -I ${include_dir}/third_party/boost \
# -I ${include_dir}/third_party/eigen3 \
# -I ${include_dir}/third_party/dlpack/include \
```
```
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录