Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
40452e72
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
40452e72
编写于
6月 20, 2019
作者:
Z
Zhen Wang
提交者:
ZhenWang
6月 21, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add the clhpp dependency.
上级
bdf5e1fd
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
5 addition
and
9 deletion
+5
-9
cmake/external/opencl-clhpp.cmake
cmake/external/opencl-clhpp.cmake
+0
-5
cmake/external/opencl-headers.cmake
cmake/external/opencl-headers.cmake
+1
-1
paddle/fluid/lite/opencl/CMakeLists.txt
paddle/fluid/lite/opencl/CMakeLists.txt
+3
-2
paddle/fluid/lite/opencl/cl_tool.h
paddle/fluid/lite/opencl/cl_tool.h
+1
-1
未找到文件。
cmake/external/opencl-clhpp.cmake
浏览文件 @
40452e72
...
...
@@ -29,11 +29,6 @@ ExternalProject_Add(
-DBUILD_EXAMPLES=OFF
-DBUILD_TESTS=OFF
-DCMAKE_INSTALL_PREFIX=
${
OPENCL_CLHPP_INSTALL_DIR
}
${
OPTIONAL_ARGS
}
${
EXTERNAL_OPTIONAL_ARGS
}
CMAKE_CACHE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=
${
GTEST_INSTALL_DIR
}
-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON
-DCMAKE_BUILD_TYPE:STRING=
${
THIRD_PARTY_BUILD_TYPE
}
)
ADD_DEPENDENCIES
(
opencl_clhpp opencl_headers
)
cmake/external/opencl-headers.cmake
浏览文件 @
40452e72
...
...
@@ -15,7 +15,7 @@
INCLUDE
(
ExternalProject
)
SET
(
OPENCL_HEADERS_SRCS_DIR
${
THIRD_PARTY_PATH
}
/opencl-headers
)
SET
(
OPENCL_HEADERS_INCLUDE_DIR
"
${
OPENCL_HEADERS_SRCS_DIR
}
/src/opencl_headers
/opencl20
"
CACHE PATH
"opencl-headers include directory."
FORCE
)
SET
(
OPENCL_HEADERS_INCLUDE_DIR
"
${
OPENCL_HEADERS_SRCS_DIR
}
/src/opencl_headers"
CACHE PATH
"opencl-headers include directory."
FORCE
)
INCLUDE_DIRECTORIES
(
${
OPENCL_HEADERS_INCLUDE_DIR
}
)
...
...
paddle/fluid/lite/opencl/CMakeLists.txt
浏览文件 @
40452e72
...
...
@@ -6,7 +6,7 @@ find_library(opencl-lib
NAMES OpenCL
)
message
(
STATUS
"The OpenCL library path :
${
opencl-lib
}
"
)
add_compile_options
(
-fno-strict-aliasing
)
add_compile_options
(
-fno-strict-aliasing
-Wno-ignored-qualifiers
)
cc_library
(
cl_tool SRCS cl_tool.cc
)
cc_library
(
cl_half SRCS cl_half.cc
)
...
...
@@ -14,6 +14,7 @@ cc_library(cl_engine SRCS cl_engine.cc DEPS cl_tool)
cc_library
(
cl_context SRCS cl_context.cc DEPS cl_engine
)
cc_library
(
cl_helper SRCS cl_helper.cc DEPS cl_context
)
cc_library
(
cl_image_converter SRCS cl_image_converter.cc DEPS cl_half lite_tensor
)
cc_library
(
cl_image SRCS cl_image.cc DEPS cl_half lite_tensor cl_image_converter
)
cc_library
(
cl_image SRCS cl_image.cc DEPS cl_half lite_tensor cl_image_converter
cl_engine
)
cc_test
(
test_cl_runtime SRCS cl_test.cc DEPS cl_engine cl_context
)
target_link_libraries
(
test_cl_runtime
${
opencl-lib
}
)
add_dependencies
(
cl_tool opencl_clhpp
)
paddle/fluid/lite/opencl/cl_tool.h
浏览文件 @
40452e72
...
...
@@ -14,7 +14,7 @@ limitations under the License. */
#pragma once
#include
<CL/cl.h>
#include
"paddle/fluid/lite/opencl/cl2_header.h"
namespace
paddle
{
namespace
lite
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录