Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
928edf57
P
Paddle-Lite
项目概览
PaddlePaddle
/
Paddle-Lite
通知
331
Star
4
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
271
列表
看板
标记
里程碑
合并请求
78
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle-Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
271
Issue
271
列表
看板
标记
里程碑
合并请求
78
合并请求
78
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
928edf57
编写于
9月 28, 2018
作者:
L
liuruilong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
move opencl to third party
上级
3426ec36
变更
24
显示空白变更内容
内联
并排
Showing
24 changed file
with
95 addition
and
17 deletion
+95
-17
CMakeLists.txt
CMakeLists.txt
+3
-0
src/framework/cl/cl_deleter.h
src/framework/cl/cl_deleter.h
+1
-1
src/framework/cl/cl_engine.cpp
src/framework/cl/cl_engine.cpp
+1
-1
src/framework/cl/cl_engine.h
src/framework/cl/cl_engine.h
+1
-1
src/framework/cl/cl_image.h
src/framework/cl/cl_image.h
+1
-1
src/framework/cl/cl_scope.h
src/framework/cl/cl_scope.h
+1
-1
src/framework/cl/cl_tensor.h
src/framework/cl/cl_tensor.h
+1
-1
src/framework/cl/cl_tool.h
src/framework/cl/cl_tool.h
+1
-1
third_party/opecl/OpenCL-Headers/CL/cl.h
third_party/opecl/OpenCL-Headers/CL/cl.h
+1
-1
third_party/opecl/OpenCL-Headers/CL/cl_d3d10.h
third_party/opecl/OpenCL-Headers/CL/cl_d3d10.h
+0
-0
third_party/opecl/OpenCL-Headers/CL/cl_d3d11.h
third_party/opecl/OpenCL-Headers/CL/cl_d3d11.h
+0
-0
third_party/opecl/OpenCL-Headers/CL/cl_dx9_media_sharing.h
third_party/opecl/OpenCL-Headers/CL/cl_dx9_media_sharing.h
+0
-0
third_party/opecl/OpenCL-Headers/CL/cl_dx9_media_sharing_intel.h
...arty/opecl/OpenCL-Headers/CL/cl_dx9_media_sharing_intel.h
+0
-0
third_party/opecl/OpenCL-Headers/CL/cl_egl.h
third_party/opecl/OpenCL-Headers/CL/cl_egl.h
+0
-0
third_party/opecl/OpenCL-Headers/CL/cl_ext.h
third_party/opecl/OpenCL-Headers/CL/cl_ext.h
+1
-1
third_party/opecl/OpenCL-Headers/CL/cl_ext_intel.h
third_party/opecl/OpenCL-Headers/CL/cl_ext_intel.h
+2
-2
third_party/opecl/OpenCL-Headers/CL/cl_gl.h
third_party/opecl/OpenCL-Headers/CL/cl_gl.h
+1
-1
third_party/opecl/OpenCL-Headers/CL/cl_gl_ext.h
third_party/opecl/OpenCL-Headers/CL/cl_gl_ext.h
+1
-1
third_party/opecl/OpenCL-Headers/CL/cl_platform.h
third_party/opecl/OpenCL-Headers/CL/cl_platform.h
+0
-0
third_party/opecl/OpenCL-Headers/CL/cl_va_api_media_sharing_intel.h
...y/opecl/OpenCL-Headers/CL/cl_va_api_media_sharing_intel.h
+0
-0
third_party/opecl/OpenCL-Headers/CL/cl_version.h
third_party/opecl/OpenCL-Headers/CL/cl_version.h
+0
-0
third_party/opecl/OpenCL-Headers/CL/opencl.h
third_party/opecl/OpenCL-Headers/CL/opencl.h
+4
-4
third_party/opecl/OpenCL-Headers/LICENSE
third_party/opecl/OpenCL-Headers/LICENSE
+25
-0
third_party/opecl/OpenCL-Headers/README.md
third_party/opecl/OpenCL-Headers/README.md
+50
-0
未找到文件。
CMakeLists.txt
浏览文件 @
928edf57
...
...
@@ -15,6 +15,9 @@ file(GLOB_RECURSE PADDLE_MOBILE_CC src/*.cc src/*.cpp src/*.c src/*.mm)
file
(
GLOB_RECURSE PADDLE_MOBILE_H src/*.h
)
include_directories
(
src/
)
include_directories
(
third_party/opecl/OpenCL-Headers
)
if
(
IS_IOS
)
set
(
CMAKE_CXX_FLAGS
"-mfpu=neon -marm -fobjc-abi-version=2 -fobjc-arc -std=gnu++11 -stdlib=libc++ -O3 -s -isysroot
${
CMAKE_OSX_SYSROOT
}
${
CMAKE_CXX_FLAGS
}
"
)
else
()
...
...
src/framework/cl/cl_deleter.h
浏览文件 @
928edf57
...
...
@@ -14,7 +14,7 @@ limitations under the License. */
#pragma once
#include "
framework/cl/
CL/cl.h"
#include "CL/cl.h"
struct
CLKernelDeleter
{
template
<
class
T
>
...
...
src/framework/cl/cl_engine.cpp
浏览文件 @
928edf57
...
...
@@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */
#include "
framework/cl/
CL/cl.h"
#include "CL/cl.h"
#include "framework/cl/cl_tool.h"
#include "framework/cl/cl_engine.h"
...
...
src/framework/cl/cl_engine.h
浏览文件 @
928edf57
...
...
@@ -19,7 +19,7 @@ limitations under the License. */
#include "common/enforce.h"
#include "framework/cl/cl_deleter.h"
#include "
framework/cl/
CL/cl.h"
#include "CL/cl.h"
namespace
paddle_mobile
{
namespace
framework
{
...
...
src/framework/cl/cl_image.h
浏览文件 @
928edf57
...
...
@@ -16,7 +16,7 @@ limitations under the License. */
#include "framework/ddim.h"
#include "framework/tensor.h"
#include "
framework/cl/
CL/cl.h"
#include "CL/cl.h"
namespace
paddle_mobile
{
namespace
framework
{
...
...
src/framework/cl/cl_scope.h
浏览文件 @
928edf57
...
...
@@ -21,7 +21,7 @@ limitations under the License. */
#include "framework/cl/cl_tool.h"
#include "framework/cl/cl_engine.h"
#include "framework/cl/cl_deleter.h"
#include "
framework/cl/
CL/cl.h"
#include "CL/cl.h"
namespace
paddle_mobile
{
namespace
framework
{
...
...
src/framework/cl/cl_tensor.h
浏览文件 @
928edf57
...
...
@@ -21,7 +21,7 @@ limitations under the License. */
#include "framework/tensor_base.h"
#include "framework/cl/cl_engine.h"
#include "framework/cl/cl_deleter.h"
#include "
framework/cl/
CL/cl.h"
#include "CL/cl.h"
namespace
paddle_mobile
{
namespace
framework
{
...
...
src/framework/cl/cl_tool.h
浏览文件 @
928edf57
...
...
@@ -14,7 +14,7 @@ limitations under the License. */
#pragma once
#include "
framework/cl/
CL/cl.h"
#include "CL/cl.h"
namespace
paddle_mobile
{
namespace
framework
{
...
...
src/framework/cl
/CL/cl.h
→
third_party/opecl/OpenCL-Headers
/CL/cl.h
浏览文件 @
928edf57
...
...
@@ -31,7 +31,7 @@
#ifdef __APPLE__
#include <OpenCL/cl_version.h>
#include <OpenCL/
opencl
.h>
#include <OpenCL/
cl_platform
.h>
#else
#include <CL/cl_version.h>
#include <CL/cl_platform.h>
...
...
src/framework/cl
/CL/cl_d3d10.h
→
third_party/opecl/OpenCL-Headers
/CL/cl_d3d10.h
浏览文件 @
928edf57
文件已移动
src/framework/cl
/CL/cl_d3d11.h
→
third_party/opecl/OpenCL-Headers
/CL/cl_d3d11.h
浏览文件 @
928edf57
文件已移动
src/framework/cl
/CL/cl_dx9_media_sharing.h
→
third_party/opecl/OpenCL-Headers
/CL/cl_dx9_media_sharing.h
浏览文件 @
928edf57
文件已移动
src/framework/cl
/CL/cl_dx9_media_sharing_intel.h
→
third_party/opecl/OpenCL-Headers
/CL/cl_dx9_media_sharing_intel.h
浏览文件 @
928edf57
文件已移动
src/framework/cl
/CL/cl_egl.h
→
third_party/opecl/OpenCL-Headers
/CL/cl_egl.h
浏览文件 @
928edf57
文件已移动
src/framework/cl
/CL/cl_ext.h
→
third_party/opecl/OpenCL-Headers
/CL/cl_ext.h
浏览文件 @
928edf57
...
...
@@ -37,7 +37,7 @@ extern "C" {
#endif
#ifdef __APPLE__
#include <OpenCL/
open
cl.h>
#include <OpenCL/cl.h>
#include <AvailabilityMacros.h>
#else
#include <CL/cl.h>
...
...
src/framework/cl
/CL/cl_ext_intel.h
→
third_party/opecl/OpenCL-Headers
/CL/cl_ext_intel.h
浏览文件 @
928edf57
...
...
@@ -53,8 +53,8 @@ Notes:
#define __CL_EXT_INTEL_H
#ifdef __APPLE__
#include <OpenCL/
open
cl.h>
#include <OpenCL/
opencl
.h>
#include <OpenCL/cl.h>
#include <OpenCL/
cl_platform
.h>
#else
#include <CL/cl.h>
#include <CL/cl_platform.h>
...
...
src/framework/cl
/CL/cl_gl.h
→
third_party/opecl/OpenCL-Headers
/CL/cl_gl.h
浏览文件 @
928edf57
...
...
@@ -30,7 +30,7 @@
#define __OPENCL_CL_GL_H
#ifdef __APPLE__
#include <OpenCL/
open
cl.h>
#include <OpenCL/cl.h>
#else
#include <CL/cl.h>
#endif
...
...
src/framework/cl
/CL/cl_gl_ext.h
→
third_party/opecl/OpenCL-Headers
/CL/cl_gl_ext.h
浏览文件 @
928edf57
...
...
@@ -39,7 +39,7 @@ extern "C" {
#endif
#ifdef __APPLE__
#include <OpenCL/
openc
l.h>
#include <OpenCL/
cl_g
l.h>
#else
#include <CL/cl_gl.h>
#endif
...
...
src/framework/cl
/CL/cl_platform.h
→
third_party/opecl/OpenCL-Headers
/CL/cl_platform.h
浏览文件 @
928edf57
文件已移动
src/framework/cl
/CL/cl_va_api_media_sharing_intel.h
→
third_party/opecl/OpenCL-Headers
/CL/cl_va_api_media_sharing_intel.h
浏览文件 @
928edf57
文件已移动
src/framework/cl
/CL/cl_version.h
→
third_party/opecl/OpenCL-Headers
/CL/cl_version.h
浏览文件 @
928edf57
文件已移动
src/framework/cl
/CL/opencl.h
→
third_party/opecl/OpenCL-Headers
/CL/opencl.h
浏览文件 @
928edf57
...
...
@@ -37,10 +37,10 @@ extern "C" {
#ifdef __APPLE__
#include <OpenCL/
open
cl.h>
#include <OpenCL/
openc
l.h>
#include <OpenCL/
opencl
.h>
#include <OpenCL/
opencl
.h>
#include <OpenCL/cl.h>
#include <OpenCL/
cl_g
l.h>
#include <OpenCL/
cl_gl_ext
.h>
#include <OpenCL/
cl_ext
.h>
#else
...
...
third_party/opecl/OpenCL-Headers/LICENSE
0 → 100644
浏览文件 @
928edf57
Copyright (c) 2008-2015 The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Materials.
MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS
KHRONOS STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS
SPECIFICATIONS AND HEADER INFORMATION ARE LOCATED AT
https://www.khronos.org/registry/
THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
third_party/opecl/OpenCL-Headers/README.md
0 → 100644
浏览文件 @
928edf57
# OpenCL<sup>TM</sup> API Headers
This repository contains C language headers for the OpenCL API.
The authoritative public repository for these headers is located at:
https://github.com/KhronosGroup/OpenCL-Headers
Issues, proposed fixes for issues, and other suggested changes should be
created using Github.
## Branch Structure
The OpenCL API headers in this repository are Unified headers and are designed
to work with all released OpenCL versions. This differs from previous OpenCL
API headers, where version-specific API headers either existed in separate
branches, or in separate folders in a branch.
## Compiling for a Specific OpenCL Version
By default, the OpenCL API headers in this repository are for the latest
OpenCL version (currently OpenCL 2.2). To use these API headers to target
a different OpenCL version, an application may
`#define`
the preprocessor
value
`CL_TARGET_OPENCL_VERSION`
before including the OpenCL API headers.
The
`CL_TARGET_OPENCL_VERSION`
is a three digit decimal value representing
the OpenCL API version.
For example, to enforce usage of no more than the OpenCL 1.2 APIs, you may
include the OpenCL API headers as follows:
```
#define CL_TARGET_OPENCL_VERSION 120
#include <CL/opencl.h>
```
## Directory Structure
```
README.md This file
LICENSE Source license for the OpenCL API headers
CL/ Unified OpenCL API headers tree
```
## License
See
[
LICENSE
](
LICENSE
)
.
---
OpenCL and the OpenCL logo are trademarks of Apple Inc. used by permission by Khronos.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录