Commit Graph

323 Commits

Author SHA1 Message Date
openharmony_sig_ci
8c63b215ef
!5 更新OAT
Merge pull request !5 from leo/master
2022-08-29 06:30:22 +00:00
xu
2562ac3e0b update OAT
Signed-off-by: xu <chenxu25@huawei.com>
2022-08-29 14:12:15 +08:00
openharmony_sig_ci
1760cbcbbb
!4 添加BUILD.gn
Merge pull request !4 from leo/master
2022-08-27 07:00:17 +00:00
xu
d306f49989 add NOTICE/BUILD.gn
Signed-off-by: xu <chenxu25@huawei.com>
2022-08-27 14:57:44 +08:00
openharmony_sig_ci
5ab1f0a0ba
!3 add NOTICE
Merge pull request !3 from leo/master
2022-08-26 06:40:08 +00:00
xu
1742ff9bdc add NOTICE
Signed-off-by: xu <chenxu25@huawei.com>
2022-08-26 10:53:29 +08:00
openharmony_sig_ci
658005fefb
!2 OAT检查
Merge pull request !2 from leo/master
2022-08-25 13:08:45 +00:00
xu
34a4b41f6c OAT check
Signed-off-by: xu <chenxu25@huawei.com>
2022-08-25 21:02:44 +08:00
arm-wk
def8be9d35
Add cl_ext_image_from_buffer extension definition (#196)
Co-authored-by: Kévin Petit <kpet@free.fr>
2022-05-10 09:02:00 -07:00
arm-wk
e444a714e4
Add cl_ext_image_requirements_info extension definition (#197) 2022-05-05 21:31:39 -07:00
Nagy-Egri Máté Ferenc
3568763309
Fix warnings on anonymous structs for MSVC (#198)
* MSVC allows anon structs even in conforming mode

* Convert Windows CI to PowerShell

* Compile tests in C++ mode

* Optionally enable C++ testing

* Backpropagate CI from Layers/SDK

* Add header to Mac CI

* Change to base image

* Clang on Windows

* Clang using pre-C11 mode

* C++ tests without feeding .c files (Clang warning)

* Guard Clang macro better

* Remove hexadecimal constant

* Fix cwd

* Fix CWD for Mac too

* Clean up MSVC anon struct detection

* Remove unused debug macro
2022-05-02 16:35:42 -07:00
openharmony_sig_ci
475945afb9
!1 add README.OpenSource
Merge pull request !1 from sunsuodong/master
2022-03-25 00:55:33 +00:00
sunsuodong
56bac912cd add README.OpenSource
Signed-off-by: sunsuodong <sunsuodong@huawei.com>
2022-03-24 06:27:07 -07:00
Nagy-Egri Máté Ferenc
dcd5bede68
option to disable tests when subproject (#195) 2022-02-08 07:13:21 +01:00
sherry-yuan
80c10b1f65
Add cl_intel_mem_alloc_buffer_location property (#193)
-------------------------------------------------------

This property allows user to specify which device global memory should be allocated to.

Supported by OpenCL 3.0 clCreateBufferWithProperties functions and OpenCL 1.x 2.x clCreateBufferWithPropertiesINTEL extension function.

Done to align with the spec in https://github.com/KhronosGroup/OpenCL-Docs/blob/master/extensions/cl_intel_mem_alloc_buffer_location.asciidoc
2022-01-19 11:47:34 -08:00
Nagy-Egri Máté Ferenc
f744e2134d
OpenCL-SDK base changes (#189)
* Initial CI stub

* Add nvidia build

* Use custom image

* Relay compiler to CMake

* Consume test too should use multi-config generator

* Consume too requires build artifacts

* Test COMPILER matric var

* Set C compiler instead of C++

* Add git to image for dependencies

* Update base image version

* Fetch CMake 3.1.3

* Install libidn11 so for CMake 3.1.3

* Added certificates for git clone over HTTPS

* Bump image version

* Add ruby to image

* Add support for build using add_subdirectory

* Added installation of SDK deps via Vcpkg

* Added ROCm execution image

* Updated build instructions

* Added missing GLEW dep to image

* Install CMake 3.3.2

* Updated ROCm install method

* Add GLU install to image

* Add CMake 3.10 for SDK sample building minimum

* Add missing tool for install

* Initial CI stub

* Add nvidia build

* Use custom image

* Relay compiler to CMake

* Consume test too should use multi-config generator

* Consume too requires build artifacts

* Test COMPILER matric var

* Set C compiler instead of C++

* Add git to image for dependencies

* Update base image version

* Fetch CMake 3.1.3

* Install libidn11 so for CMake 3.1.3

* Added certificates for git clone over HTTPS

* Bump image version

* Add ruby to image

* Add support for build using add_subdirectory

* Added installation of SDK deps via Vcpkg

* Added ROCm execution image

* Updated build instructions

* Added missing GLEW dep to image

* Install CMake 3.3.2

* Updated ROCm install method

* Add GLU install to image

* Add CMake 3.10 for SDK sample building minimum

* Add missing tool for install

* Move Dockerfiles to OpenCL-SDK

* Install MacOS-style include symlink

Remove the desperate SYSTEM BEFORE properties on the include paths and properly hide MacOS system headers with our own through a symlink and user `-I`

* Allow both Apple and Linux style includes on Mac

* Fixed typo

* Remove out-of-context copy-pasta error

* Remove GitLab CI
2022-01-19 08:08:55 -08:00
Kévin Petit
59ac4dc2f2
Add definitions for cl_arm_protected_memory_allocation (#187)
* Add definitions for cl_arm_protected_memory_allocation

Specification: https://github.com/KhronosGroup/OpenCL-Docs/pull/727

Signed-off-by: Kevin Petit <kevin.petit@arm.com>

* fix UB
2021-12-14 09:05:42 -08:00
Ben Ashbaugh
e3cd57376d
update headers for cl_intel_unified_shared_memory (#184) 2021-11-22 08:38:57 -08:00
Ewan Crawford
92c9108be0
Add provisional command-buffer extension (#182)
* Add provisional command-buffer extension

Run `gen_headers.py` from https://github.com/KhronosGroup/OpenCL-Headers/pull/161 on XML file
containing https://github.com/KhronosGroup/OpenCL-Docs/pull/711 new spec extensions.

The only XML changes are for the `cl_khr_command_buffer` extension, which declarations gets
generated at the top of `cl_ext.h` by the script. So I have taken the generated
`cl_khr_command_buffer` code and applied it to the same location in master branch `cl_ext.h`.

* Remove INFO from command-buffer query enums

Updated to reflect
9295865867

* Reflect command-buffer property changes

1. Change type of `cl_command_buffer_properties_khr` to `cl_properties`
2. Add a new `cl_command_buffer_flags_khr` type.
3. Rename `CL_COMMAND_BUFFER_PROPERTIES_KHR` to
`CL_COMMAND_BUFFER_FLAGS_KHR`.
  3a. Change the expected type of this to `cl_command_buffer_flags_khr`.
4. Change type of `cl_ndrange_kernel_command_properties_khr` to
`cl_properties`
2021-11-16 17:29:32 -08:00
Feng Zou
71297456fc
Rename cl_intel_thread_local_exec to cl_intel_exec_by_local_thread (#183)
cl_intel_exec_by_local_thread is the correct extension name.
2021-11-15 21:18:30 -08:00
Kévin Petit
447efd3be3
Fix API suffix version macros for semaphore extensions command definitions (#181)
These extensions only require OpenCL 1.2

Signed-off-by: Kevin Petit <kevin.petit@arm.com>
2021-10-21 10:14:14 -07:00
Gustavo Alvarez
1fc6fc181c
If change the include path destination when run cmake configure with DCMAKE_INSTALL_INCLUDEDIR, the .cmake generated still point to hardcoded path include. this fix it (#178) 2021-10-18 23:14:52 +01:00
Ben Ashbaugh
03162a6f8b
add external memory, external semaphore, and semaphore provisional extensions (#180)
* add external memory, external semaphore, and semaphore extensions

* remove duplicated enums
2021-10-18 23:13:25 +01:00
y-novikov
1aa1139b58
Fix condition for warning 4201 pop (#179)
Matching the condition for push.
New clang compiler version complains that the warning can be popped
without being pushed first.
2021-10-06 14:35:29 -07:00
Ben Ashbaugh
835558e45c
update extension headers for cl_intel_device_attribute_query (#172) 2021-09-16 15:21:56 +01:00
Ben Ashbaugh
06fecd8fed
update extension headers for cl_intel_sharing_format_query (#171) 2021-09-16 15:21:37 +01:00
Kévin Petit
c810b6923c
Add support for cl_khr_integer_dot_product v2 (#174)
Signed-off-by: Kevin Petit <kevin.petit@arm.com>
2021-09-01 13:39:59 -07:00
Ben Ashbaugh
1bb9ec797d
update headers for cl_khr_integer_dot_product (#170) 2021-06-22 07:25:56 -07:00
Ben Ashbaugh
1d3dc4e756
add cl_khr_pci_bus_info and cl_khr_suggested_local_work_size (#166) 2021-04-26 07:01:46 -07:00
John Plate
101bdd16ec
Add missing 'stdint.h' include to 'CL/cl.h' (#164)
* Add missing 'stdint.h' include

* Moved stdint.h include to cl_platform.h

* Don't include stdint.h before Visual Studio 2010
2021-04-16 21:39:09 -07:00
Ben Ashbaugh
77d9ce7d4f
disable failing CI configs (#163)
* use the Ubuntu 18.04 environment instead of ubuntu-latest, for now

* disable Ninja configs for MacOS for now

* disable gcc-8 for now
2021-04-16 21:17:45 -07:00
John Plate
eea2ab6219
Fixes for usage of macro CL_API_ENTRY (#162) 2021-04-14 23:20:44 -07:00
Ben Ashbaugh
23710f1b99
cl_intel_command_queue_families extension (#155) 2021-02-21 00:15:52 -05:00
Milkey Mouse
ac0bf07a6c
Update default OpenCL version in README (#160)
Since commit 9fac4e9, OpenCL 3.0, not 2.0 has been the default version
if CL_TARGET_OPENCL_VERSION is not defined.
2021-02-20 23:26:35 -05:00
Kévin Petit
9d46d9580c
Replace uses of CL_EXT_{PRE,SUF}FIX* with CL_API_{PRE,SUF}FIX* (#158)
Contributes to #153

Signed-off-by: Kévin Petit <kevin.petit@arm.com>
2021-02-19 22:12:38 +00:00
Ben Ashbaugh
d1b936b72b
do not include cl_gl_ext.h from opencl.h (#159) 2021-02-16 21:50:34 -05:00
Ben Ashbaugh
95d1b3fb54
move cl_khr_gl_event to cl_gl.h (#156) 2021-02-16 15:32:41 -05:00
Ben Ashbaugh
f74fc79147
Add testing for cl_d3d10.h, cl_d3d11.h, and cl_dx9_media_sharing.h (#123)
* Add testing for cl_d3d10.h, cl_d3d11.h, and cl_dx9_media_sharing.h

* add a test for cl_dx9_media_sharing_intel.h
2021-02-16 15:19:03 -05:00
Kévin Petit
4a70f93bfc
Add definitions for cl_arm_import_memory_android_hardware_buffer v1.1.0 (#157)
Signed-off-by: Einar Hov <einar.hov@arm.com>
Signed-off-by: Kevin Petit <kevin.petit@arm.com>
Change-Id: I91b3738d389b1cada65869d6ac990ceca8381746
2021-02-15 12:43:08 -08:00
Kévin Petit
d0d6457792
Add support for user-supplied prefix/suffix in function declarations (#154)
This change adds the ability for a user of the headers to pass
prefixes or suffixes to be used in the function prototypes via
(respectively) CL_API_PREFIX_USER and CL_API_SUFFIX_USER.

This can be used to pass additional attributes (e.g. to use
weak symbols).

Signed-off-by: Kévin Petit <kpet@free.fr>
2021-02-15 20:35:49 +00:00
Brice Videau
18eaa39c9c
Move cl_icd_layer.h from OpenCL-ICD-Loader to OpenCL-Headers. (#148)
* Move cl_icd_layer.h from OpenCL-ICD-Loader to OpenCL-Headers.

* Added test for cl_icd_layer.h single inclusion.

* Added missing test_cl_icd_layer.h.c file.

* Changed include guard to non reserved identifier.

* Renamed cl_icd_layer.h to cl_layer.h.

* Fix tests and guard.
2021-02-11 15:16:32 -08:00
Kévin Petit
2378fb98e7
Add definitions for cl_arm_controlled_kernel_termination (#152)
* Add definitions for cl_arm_controlled_kernel_termination

Signed-off-by: Kevin Petit <kevin.petit@arm.com>
Change-Id: I8802d7ef06b619814f898b5215f3592886a744bf

* Break cl_command_termination_reason_arm enum into separate definitions

Signed-off-by: Kevin Petit <kevin.petit@arm.com>
Change-Id: I109b45a222736a5d5346f44ea42e90271a1c79fe

* Add cl_device_controlled_termination_capabilities_arm

Change-Id: Ic5a0f40e96a0ac03eddca2a4eed26756ce5130ec
2021-02-11 08:30:08 -08:00
Kévin Petit
c271d3cd13
Add definitions for cl_arm_scheduling_controls v0.3.0 (#151)
Change-Id: I90bb9c47bf8aaa8f6499cd8eae33858dda50672f
Signed-off-by: Neil Hickey <neil.hickey@arm.com>
Signed-off-by: Kevin Petit <kevin.petit@arm.com>
2021-02-09 20:53:44 -08:00
Kévin Petit
6ddf40b51b
Remove unused CL_EXTENSION_WEAK_LINK definition (#150)
Signed-off-by: Kévin Petit <kevin.petit@arm.com>
2021-02-03 15:11:06 -08:00
Ben Ashbaugh
fb6807bfc9
move Intel extensions into common files (#129)
* move Intel extensions into common files

* switch from #warning to #pragma message

Using #warning will cause projects with warnings as errors enabled
to stop building.

* add back testing for cl_ext_intel.h
2021-01-29 00:00:42 +00:00
Kévin Petit
dc461719e5
Add definitions for cl_arm_scheduling_controls v0.2.0 (#147)
Signed-off-by: Oualid Khelifi <oualid.khelifi@arm.com>
Signed-off-by: Kevin Petit <kevin.petit@arm.com>
2021-01-12 10:06:17 -08:00
Jon Leech
7edca72746
Update apt package list in CI before running cmake (#143)
* Update apt before it's invoked by cmake
2020-12-19 22:25:02 +00:00
Ben Ashbaugh
c57ba81c46 re-enable format string warning in CI 2020-12-09 11:53:44 -05:00
Ben Ashbaugh
0885415c0f use PRId64 and PRIu64 when printing 64-bit values 2020-12-09 11:53:44 -05:00
Ben Ashbaugh
cc54363c8c fix test format string warnings 2020-12-09 11:53:44 -05:00