Home
last modified time | relevance | path

Searched full:opencl (Results 1 – 25 of 1205) sorted by relevance

12345678910>>...49

/third_party/opencl-headers/
DREADME.md1 # OpenCL<sup>TM</sup> API Headers
3 This repository contains C language headers for the OpenCL API.
7 https://github.com/KhronosGroup/OpenCL-Headers
14 > While the OpenCL Headers can be built and installed in isolation, it is part of the [OpenCL SDK](…
18 - The OpenCL Headers CMake package support uses CMake for its build system.
35 cmake -D CMAKE_PREFIX_PATH=/chosen/install/prefix /path/to/opencl/app
46 target_link_libraries(app PRIVATE OpenCL::Headers)
51 The OpenCL API headers in this repository are Unified headers and are designed
52 to work with all released OpenCL versions. This differs from previous OpenCL
56 ## Compiling for a Specific OpenCL Version
[all …]
Dbundle.json2 "name": "@ohos/opencl-headers",
3 "description": "OpenCL C Headers.",
8 "destPath": "third_party/opencl-headers"
13 "name": "opencl-headers",
27 "//third_party/opencl-headers:libcl"
31 "name": "//third_party/opencl-headers:libcl",
36 "header_base": "//third_party/opencl-headers/include/"
DCMakeLists.txt14 option(OPENCL_HEADERS_BUILD_TESTING "Enable support for OpenCL C headers testing." OFF)
15 option(OPENCL_HEADERS_BUILD_CXX_TESTS "Enable support for OpenCL C headers testing in C++ mode." ON)
23 add_library(OpenCL::Headers ALIAS Headers)
28 COMMAND ln -snf ${CMAKE_CURRENT_SOURCE_DIR}/CL ${CMAKE_CURRENT_BINARY_DIR}/OpenCL
38 COMMAND ln -snf CL ${CMAKE_INSTALL_FULL_INCLUDEDIR}/OpenCL
61 NAMESPACE OpenCL::
72 NAMESPACE OpenCL::
101 set(OPENCL_HEADERS_XML_PATH CACHE FILEPATH "Path to cl.xml for OpenCL Header genereration")
145 configure_file(OpenCL-Headers.pc.in OpenCL-Headers.pc @ONLY)
148 FILES ${CMAKE_CURRENT_BINARY_DIR}/OpenCL-Headers.pc
/third_party/mindspore/mindspore-src/source/mindspore/lite/src/litert/kernel/gpu/opencl/
Dopencl_runtime_wrapper.cc22 #include "src/litert/kernel/opencl/utils.h"
23 #include "src/litert/kernel/gpu/opencl/opencl_allocator.h"
25 #include "src/litert/kernel/gpu/opencl/opencl_runtime.h"
29 namespace mindspore::registry::opencl { namespace
31 lite::opencl::OpenCLRuntimeInnerWrapper ocl_runtime_wrap; in LoadSource()
32 lite::opencl::OpenCLRuntime *ocl_runtime = ocl_runtime_wrap.GetInstance(); in LoadSource()
44 lite::opencl::OpenCLRuntimeInnerWrapper ocl_runtime_wrap; in BuildKernel()
45 lite::opencl::OpenCLRuntime *ocl_runtime = ocl_runtime_wrap.GetInstance(); in BuildKernel()
56 lite::opencl::OpenCLRuntimeInnerWrapper ocl_runtime_wrap; in SetKernelArg()
57 lite::opencl::OpenCLRuntime *ocl_runtime = ocl_runtime_wrap.GetInstance(); in SetKernelArg()
[all …]
Dopencl_wrapper.cc19 #include "src/litert/kernel/gpu/opencl/opencl_wrapper.h"
37 namespace mindspore::lite::opencl { namespace
38 // default opencl library path
41 "libOpenCL.so", "/System/Library/Frameworks/OpenCL.framework/OpenCL"
72 "/opt/intel/system_studio_2020/opencl/SDK/lib64/libOpenCL.so",
74 "C:\\Windows\\System32\\OpenCL.dll"
184 …[&](const std::string &lib_path) { return lite::opencl::LoadLibraryFromPath(lib_path, handle_ptr);… in LoadOpenCLLibrary()
186 MS_LOG(DEBUG) << "Find a OpenCL dynamic library : " << *it; in LoadOpenCLLibrary()
264 } // namespace mindspore::lite::opencl
267 auto func = mindspore::lite::opencl::clGetPlatformIDs; in clGetPlatformIDs()
[all …]
/third_party/opencl-headers/tests/
DBUILD.gn27 part_name = "opencl-headers"
34 part_name = "opencl-headers"
41 part_name = "opencl-headers"
48 part_name = "opencl-headers"
55 part_name = "opencl-headers"
62 part_name = "opencl-headers"
69 part_name = "opencl-headers"
76 part_name = "opencl-headers"
83 part_name = "opencl-headers"
90 part_name = "opencl-headers"
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/lite/include/registry/
Dopencl_runtime_wrapper.h32 namespace mindspore::registry::opencl {
38 /// \brief Load the OpenCl source code and bind the program name.
40 /// \param[in] program_name Define OpenCl source program name.
41 /// \param[in] source Define OpenCl source.
46 /// \brief Building OpenCL code.
49 /// \param[in] program_name Define OpenCl source program name.
50 /// \param[in] kernel_name Define OpenCl source kernel name.
51 /// \param[in] build_options_ext Define OpenCl kernel build options.
59 /// \param[in] kernel Define OpenCl kernel.
60 /// \param[in] index Define OpenCl kernel argument index.
[all …]
/third_party/mindspore/mindspore-src/source/cmake/external_libs/
Dopencl-headers.cmake2 set(GIT_REPOSITORY "git@gitee.com:src-openeuler/opencl-clhpp.git")
6 if(EXISTS "${CMAKE_BINARY_DIR}/_deps/opencl-clhpp-src")
9 file(REMOVE_RECURSE "${CMAKE_BINARY_DIR}/_deps/opencl-clhpp-src")
10 file(REMOVE_RECURSE "${CMAKE_BINARY_DIR}/_deps/opencl-clhpp-build")
11 file(REMOVE_RECURSE "${CMAKE_BINARY_DIR}/_deps/opencl-clhpp-subbuild")
14 __download_pkg_with_git(OpenCL-CLHPP ${GIT_REPOSITORY} ${GIT_TAG} ${SHA256})
15 set(OPENCL_CLHPP_SRC "${CMAKE_BINARY_DIR}/_deps/opencl-clhpp-src")
18 set(OPENCL_HEADER_SRC "${CMAKE_BINARY_DIR}/_deps/opencl-headers-src")
22 …set(REQ_URL "https://gitee.com/mirrors/OpenCL-Headers/repository/archive/v2020.12.18.tar.gz")# VER…
24 __download_pkg(OpenCL-Headers ${REQ_URL} ${SHA256})
[all …]
Dopencl-clhpp.cmake1 # Note: OpenCL-CLHPP depends on OpenCL-Headers
3 # Already downloaded in opencl-header.cmake
5 …set(REQ_URL "https://gitee.com/mirrors/OpenCL-CLHPP/repository/archive/v2.0.12.tar.gz")# VER 2.0.12
7 __download_pkg(OpenCL-CLHPP ${REQ_URL} ${SHA256})
9 set(REQ_URL "https://github.com/KhronosGroup/OpenCL-CLHPP/archive/v2.0.12.tar.gz")
11 __download_pkg(OpenCL-CLHPP ${REQ_URL} ${SHA256})
/third_party/skia/third_party/externals/opengl-registry/extensions/ARB/
DARB_cl_event.txt40 An OpenCL implementation supporting sharing event objects
45 This extension allows creating OpenGL sync objects linked to OpenCL
48 OpenCL extension provides the complementary functionality of
49 creating an OpenCL event object from an OpenGL fence sync object.
50 That extension is located in the OpenCL API Registry.
78 "Sync Objects Linked to OpenCL Events
82 OpenCL event object. This provides another method of coordinating
83 sharing of buffers and images between OpenGL and OpenCL (see Chapter
84 9 of the OpenCL 1.0 Specification). Waiting on such a sync object is
93 to a valid OpenCL context and a valid event in that context,
[all …]
/third_party/openGLES/extensions/ARB/
DARB_cl_event.txt50 An OpenCL implementation supporting sharing event objects
55 This extension allows creating OpenGL sync objects linked to OpenCL
58 OpenCL extension provides the complementary functionality of
59 creating an OpenCL event object from an OpenGL fence sync object.
60 That extension is located in the OpenCL API Registry.
88 "Sync Objects Linked to OpenCL Events
92 OpenCL event object. This provides another method of coordinating
93 sharing of buffers and images between OpenGL and OpenCL (see Chapter
94 9 of the OpenCL 1.0 Specification). Waiting on such a sync object is
103 to a valid OpenCL context and a valid event in that context,
[all …]
/third_party/spirv-tools/test/link/
Dmatching_imports_to_exports_test.cpp31 OpMemoryModel Physical64 OpenCL in TEST_F()
41 OpMemoryModel Physical64 OpenCL in TEST_F()
55 OpMemoryModel Physical64 OpenCL in TEST_F()
74 OpMemoryModel Physical64 OpenCL in TEST_F()
87 OpMemoryModel Physical64 OpenCL in TEST_F()
104 OpMemoryModel Physical64 OpenCL in TEST_F()
119 OpMemoryModel Physical64 OpenCL in TEST_F()
137 OpMemoryModel Physical64 OpenCL in TEST_F()
145 OpMemoryModel Physical64 OpenCL in TEST_F()
160 OpMemoryModel Physical64 OpenCL in TEST_F()
[all …]
/third_party/spirv-tools/test/val/
Dval_opencl_test.cpp15 // Validation tests for OpenCL env specific checks
34 OpMemoryModel Logical OpenCL in TEST_F()
42 "in the OpenCL environment.\n OpMemoryModel Logical " in TEST_F()
43 "OpenCL\n")); in TEST_F()
60 HasSubstr("Memory model must be OpenCL in the OpenCL environment.")); in TEST_F()
67 OpMemoryModel Physical32 OpenCL in TEST_F()
77 HasSubstr("Sampled Type must be OpTypeVoid in the OpenCL environment." in TEST_F()
85 OpMemoryModel Physical32 OpenCL in TEST_F()
95 HasSubstr("MS must be 0 in the OpenCL environment." in TEST_F()
103 OpMemoryModel Physical32 OpenCL in TEST_F()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/val/
Dval_opencl_test.cpp15 // Validation tests for OpenCL env specific checks
34 OpMemoryModel Logical OpenCL in TEST_F()
42 "in the OpenCL environment.\n OpMemoryModel Logical " in TEST_F()
43 "OpenCL\n")); in TEST_F()
60 HasSubstr("Memory model must be OpenCL in the OpenCL environment.")); in TEST_F()
67 OpMemoryModel Physical32 OpenCL in TEST_F()
77 HasSubstr("Sampled Type must be OpTypeVoid in the OpenCL environment." in TEST_F()
85 OpMemoryModel Physical32 OpenCL in TEST_F()
95 HasSubstr("MS must be 0 in the OpenCL environment." in TEST_F()
103 OpMemoryModel Physical32 OpenCL in TEST_F()
[all …]
/third_party/skia/third_party/externals/spirv-tools/test/val/
Dval_opencl_test.cpp15 // Validation tests for OpenCL env specific checks
34 OpMemoryModel Logical OpenCL in TEST_F()
42 "in the OpenCL environment.\n OpMemoryModel Logical " in TEST_F()
43 "OpenCL\n")); in TEST_F()
60 HasSubstr("Memory model must be OpenCL in the OpenCL environment.")); in TEST_F()
67 OpMemoryModel Physical32 OpenCL in TEST_F()
77 HasSubstr("Sampled Type must be OpTypeVoid in the OpenCL environment." in TEST_F()
85 OpMemoryModel Physical32 OpenCL in TEST_F()
95 HasSubstr("MS must be 0 in the OpenCL environment." in TEST_F()
103 OpMemoryModel Physical32 OpenCL in TEST_F()
[all …]
/third_party/skia/third_party/externals/angle2/infra/specs/
Dangle_mb_config.pyl53 'angle_asan_bot': ['angle', 'opencl', 'traces', 'goma', 'asan', 'release'],
54 …'angle_goma_android_arm64_debug_bot': ['angle', 'opencl', 'traces', 'goma', 'android', 'arm64', 'd…
55 …'angle_goma_android_arm64_release_bot': ['angle', 'opencl', 'traces', 'goma', 'android', 'arm64', …
56 …'angle_goma_android_arm_debug_bot': ['angle', 'opencl', 'traces', 'goma', 'android', 'arm', 'debug…
57 …'angle_goma_android_arm_release_bot': ['angle', 'opencl', 'traces', 'goma', 'android', 'arm', 'rel…
59 'angle_goma_debug_bot': ['angle', 'opencl', 'traces', 'goma', 'debug'],
61 'angle_goma_release_bot': ['angle', 'opencl', 'traces', 'goma', 'release'],
62 'angle_goma_x86_debug_bot': ['angle', 'opencl', 'traces', 'goma', 'x86', 'debug'],
63 'angle_goma_x86_release_bot': ['angle', 'opencl', 'traces', 'goma', 'x86', 'release'],
64 'angle_non_clang_debug_bot': ['angle', 'opencl', 'non_clang', 'debug'],
[all …]
/third_party/opencl-headers/scripts/
DREADME.md1 # OpenCL Header Code Generation
5 …and enable faster development in the OpenCL headers, the OpenCL headers for extensions are generat…
6 Currently, header generation is only enabled for the OpenCL headers for extensions, and the OpenCL
10 The OpenCL headers are generated using Python [Mako Templates](https://www.makotemplates.org/).
29 …sion of `cl.xml` may be found in the Khronos OpenCL-Docs repo [here](https://github.com/KhronosGro…
/third_party/EGL/extensions/KHR/
DEGL_KHR_cl_event.txt52 An OpenCL implementation supporting sharing OpenCL event objects
58 OpenCL event object, potentially improving efficiency of sharing
61 OpenCL event object from an EGL fence sync object.
65 None. However, event handles of type cl_event, defined in the OpenCL
97 OpenCL event object to which the sync object is linked. This
99 EGL and OpenCL (see Chapter 9 of the OpenCL 1.0 Specification and
108 EGL_CL_EVENT_HANDLE_KHR, set to a valid OpenCL event. Note that
125 OpenCL event object. When the sync object is deleted, the reference
128 However, implementations are not required to validate the OpenCL
138 or is not a valid OpenCL event handle returned by a call to
[all …]
/third_party/skia/third_party/externals/egl-registry/extensions/KHR/
DEGL_KHR_cl_event.txt52 An OpenCL implementation supporting sharing OpenCL event objects
58 OpenCL event object, potentially improving efficiency of sharing
61 OpenCL event object from an EGL fence sync object.
65 None. However, event handles of type cl_event, defined in the OpenCL
97 OpenCL event object to which the sync object is linked. This
99 EGL and OpenCL (see Chapter 9 of the OpenCL 1.0 Specification and
108 EGL_CL_EVENT_HANDLE_KHR, set to a valid OpenCL event. Note that
125 OpenCL event object. When the sync object is deleted, the reference
128 However, implementations are not required to validate the OpenCL
138 or is not a valid OpenCL event handle returned by a call to
[all …]
/third_party/EGL/extensions/EXT/
DEGL_EXT_sync_reuse.txt66 fence in the current API. For OpenCL event sync objects, this means
67 waiting for a new OpenCL event handle. This mechanism also allows
129 An <OpenCL event sync object> reflects the status of a corresponding
130 OpenCL event object to which the sync object is linked. This
132 EGL and OpenCL (see Chapter 9 of the OpenCL 1.0 Specification and
134 equivalent to waiting for completion of the linked OpenCL event
252 3.8.1.2 Creating and Signaling OpenCL Event Sync Objects
254 If type is EGL_SYNC_CL_EVENT, an OpenCL event sync object is
259 status will be determined by the provided OpenCL event, as described
263 To use an OpenCL event sync object, the EGL_SYNC_CL_EVENT attribute
[all …]
/third_party/skia/third_party/externals/egl-registry/extensions/EXT/
DEGL_EXT_sync_reuse.txt66 fence in the current API. For OpenCL event sync objects, this means
67 waiting for a new OpenCL event handle. This mechanism also allows
129 An <OpenCL event sync object> reflects the status of a corresponding
130 OpenCL event object to which the sync object is linked. This
132 EGL and OpenCL (see Chapter 9 of the OpenCL 1.0 Specification and
134 equivalent to waiting for completion of the linked OpenCL event
252 3.8.1.2 Creating and Signaling OpenCL Event Sync Objects
254 If type is EGL_SYNC_CL_EVENT, an OpenCL event sync object is
259 status will be determined by the provided OpenCL event, as described
263 To use an OpenCL event sync object, the EGL_SYNC_CL_EVENT attribute
[all …]
/third_party/skia/third_party/externals/angle2/third_party/OpenCL-ICD-Loader/
DREADME.chromium1 Name: Khronos OpenCL ICD Loader
2 Short Name: OpenCL-ICD-Loader
4 URL: https://chromium.googlesource.com/external/github.com/KhronosGroup/OpenCL-ICD-Loader
5 SOURCE CODE: git clone -b OpenCL-ICD-Loader https://chromium.googlesource.com/external/github.com/K…
13 OpenCL defines an Installable Client Driver (ICD) mechanism to allow developers to build
15 their applications against a specific OpenCL implementation.
/third_party/vk-gl-cts/external/amber/src/src/amberscript/
Dparser_pipeline_set_test.cc25 SHADER compute my_shader OPENCL-C in TEST_F()
42 SHADER compute my_shader OPENCL-C in TEST_F()
59 SHADER compute my_shader OPENCL-C in TEST_F()
76 SHADER compute my_shader OPENCL-C in TEST_F()
93 SHADER compute my_shader OPENCL-C in TEST_F()
110 SHADER compute my_shader OPENCL-C in TEST_F()
127 SHADER compute my_shader OPENCL-C in TEST_F()
144 SHADER compute my_shader OPENCL-C in TEST_F()
161 SHADER compute my_shader OPENCL-C in TEST_F()
178 SHADER compute my_shader OPENCL-C in TEST_F()
[all …]
/third_party/mesa3d/src/compiler/libcl/
Dlibcl.h12 * OpenCL.
17 /* The OpenCL version of this header defines many OpenCL versions of stdint.h
25 * need to resolve to a real pointer in OpenCL but an opaque 64-bit address on
33 * OpenCL generic pointers, but those can cause headaches and lose constantness,
46 #pragma OPENCL EXTENSION cl_khr_fp16 : enable
48 /* The OpenCL side of DEVICE must resolve to real pointer types, unlike
57 /* OpenCL lacks explicitly sized integer types, but we know the sizes of
71 /* OpenCL C lacks static_assert, a part of C11. This makes static_assert
91 /* stddef.h usually defines this. We don't have that on the OpenCL side but we
101 /* OpenCL C doesn't seem to have an equivalent for this but it doesn't matter.
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/cl/
Dcl_util.h20 // Extract numeric version from OpenCL version string
25 // Get a set of OpenCL extensions which are supported to be passed through
31 // These Khronos extension names must be returned by all devices that support OpenCL 1.1. in GetSupportedCLExtensions()
39 // OpenCL 2.0, OpenCL 2.1, or OpenCL 2.2. For devices that support OpenCL 3.0, these in GetSupportedCLExtensions()
57 // Check if a specific OpenCL extensions is supported to be passed through

12345678910>>...49