niranjanjoshi121
d928ac059c
Use correct size for memory allocation in SVM test ( #1496 )
...
Memory is allocated for cl_int, but mapped as size_t.
Use size_t instead of cl_int during allocation and mapping for consistency.
2022-09-12 12:42:06 +01:00
Sven van Haastregt
6554c49018
[NFCI] Remove unused variables and enable -Wunused-variable ( #1483 )
...
Remove unused variables throughout the code base and enable the
`-Wunused-variable` warning flag globally to prevent new unused
variable issues being introduced in the future.
This is mostly a non-functional change, with one exception:
- In `test_conformance/api/test_kernel_arg_info.cpp`, an error check
of the clGetDeviceInfo return value was added.
Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com >
2022-09-08 12:54:36 +01:00
niranjanjoshi121
9ad4899862
Use size_t instead of cl_int ( #1414 )
...
* Use size_t instead of cl_int
Memory is allocated for cl_int,
but mapped as size_t.
Use size_t instead of cl_int during
allocation and mapping for consistency.
* Use size_t instead of cl_int
Memory is allocated for cl_int,
but mapped as size_t.
Use size_t instead of cl_int during
allocation and mapping for consistency.
* Use size_t instead of cl_int
Memory is allocated for cl_int,
but mapped as size_t.
Use size_t instead of cl_int during
allocation and mapping for consistency.
* Remove test_half changes.
Remove test_half changes from other fix
that got included in this commit.
* Final formatting fix.
2022-08-31 22:58:13 -07:00
Grzegorz Wawiorko
216455842d
Change arg type to unsigned int from signed int ( #1078 )
...
* Change arg type to unsigned int from signed int
* Fix formatting issues
2021-02-02 16:43:37 +00:00
Grzegorz Wawiorko
2597027737
Use highest OpenCL C version ( #1081 )
...
* Set the highest supported OpenCL C version.
* Remove gDeviceLt20 variable - not used anymore.
* Fix formatting issues
2021-01-11 13:54:19 +00:00
Ben Ashbaugh
d3eba8571a
add OpenCL 3.0 test for CL_COMMAND_SVM_MIGRATE_MEM ( #856 )
2020-07-31 13:10:05 +01:00
Grzegorz Wawiorko
450f583800
Fix code format errors vs.2
2020-07-23 17:21:07 +01:00
Grzegorz Wawiorko
44a240367e
Fix code format errors
2020-07-23 17:21:07 +01:00
Grzegorz Wawiorko
d643dc5399
Add API name to version_expected_info function
2020-07-23 17:21:07 +01:00
Kévin Petit
5e2f5b857e
Accept OpenCL 3.0 in version parsing code and use where appropriate ( #752 )
...
* Accept OpenCL 3.0 in version parsing code and use where appropriate
There were a number of tests against 2.2 that are clearer against 3.0.
Fixes #751
Signed-off-by: Kévin Petit <kpet@free.fr >
* Remove CL_EXPERIMENTAL guards
Signed-off-by: Kévin Petit <kpet@free.fr >
* formatting
* Configure the headers for OpenCL 3.0
* more format fixes
2020-04-30 11:51:06 +01:00
ellnor01
3b79ecdb87
Replace get_device_version with get_cl_device_version ( #733 )
...
They are duplicate functions
Fixes #709
Change-Id: I8f7d6b8254047adb9e09ede4951dedc3ec5c1099
Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com >
2020-04-15 14:31:22 +01:00
Grzegorz Wawiorko
78fc283069
Fix test skip handling while test initialization ( #670 )
2020-03-11 18:14:29 +00:00
Grzegorz Wawiorko
8a00f4eced
Test SVM: Fix - do not use unmapped pointer. ( #661 )
...
* Fix - do not use unmapped pointer.
* Exchanging variable names to more readable.
2020-03-11 10:10:51 +00:00
Radek Szymanski
80c3a27a6a
Remove unused parameter ( #630 )
...
The imageSupportRequired param is not needed in runTestHarnessWithCheck,
so just remove it.
Signed-off-by: Radek Szymanski <radek.szymanski@arm.com >
2020-02-27 15:36:28 +00:00
Kévin Petit
3f11868e11
Fix warnings reported by -Wconversion-null ( #603 )
...
Fix error reporting in clFillImage as a result.
Signed-off-by: Kevin Petit <kevin.petit@arm.com >
2020-02-21 12:21:53 +00:00
boazo
fa6b9e671e
Svm optional ( #580 )
...
* svm test optional
* make svm test suite execution optional
2020-02-20 19:39:40 +00:00
Grzegorz Wawiorko
1ca9d9dca7
test_svm - enqueue_api - lack of synchronization points ( #571 )
...
* Fixes #570 - test_svm - enqueue_api - lack of synchronization points
* Review fixes - use variable, use CL_MAP_READ
* Review fix - use nullptr instead of 0
2020-02-03 13:47:50 +00:00
Kévin Petit
d7e8e5040a
Mark SVM and pipes tests as requiring OpenCL 2.0 ( #475 )
...
Signed-off-by: Kévin Petit <kpet@free.fr >
2019-11-14 17:26:32 +00:00
Grzegorz Wawiorko
d6e1e7c870
Fix Issue 462 - test_svm crash ( #463 )
2019-10-02 11:57:40 +01:00
Kévin Petit
da0f375226
Add host/host test for clEnqueueSVMMemcpy ( #460 )
...
This was the only combination that was not exercised.
Fixes #419
Signed-off-by: Kevin Petit <kevin.petit@arm.com >
2019-09-26 11:56:34 +01:00
Grzegorz Wawiorko
f4682a9181
Fix compilation issues ( #448 )
2019-09-12 13:05:46 +01:00
Grzegorz Wawiorko
e880869559
Fix verification if atomics 64bit extensions supported by device ( #441 )
2019-08-23 10:24:02 +01:00
Kévin Petit
0b9329a9d6
Add missing event release calls in SVM tests ( #437 )
...
Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com >
2019-08-16 15:51:25 +01:00
Kévin Petit
fa4b278432
Build the harness as a static library ( #430 )
...
This reduces by a factor of roughly two the number of files to build.
Fixes #193 .
Signed-off-by: Kevin Petit <kevin.petit@arm.com >
2019-08-07 17:18:10 +01:00
Grzegorz Wawiorko
da313500a5
test clEnqueueSVMMemcpy in case of host memory allocation ( #300 )
...
* test clEnqueueSVMMemcpy in case of host memory allocation
* test clEnqueueSVMMemcpy - refactored to call once API function
* test clEnqueueSVMMemcpy - review fixes
2019-08-05 10:54:21 +01:00
Kevin Petit
ef832c330c
Stop using ../../test_common to include common headers
...
Fixes #395 .
Signed-off-by: Kevin Petit <kevin.petit@arm.com >
2019-08-01 18:41:12 +01:00
Kevin Petit
75a26fdc44
Specify minimum required version for all OpenCL 2.1 tests
...
Signed-off-by: Kevin Petit <kevin.petit@arm.com >
2019-08-01 10:02:28 +01:00
Wenju He
1d2e0ca248
Fix SVM if 64-bit atomic extensions are supported ( #396 )
...
Need to enable 64-bit atomic extensions in kernel source.
Use InterlockedCompareExchange64 for 64-bit type.
2019-07-24 18:54:20 +01:00
Grzegorz Wawiorko
53189e3fba
Intel compiler - fix assert when checking OCL version ( #287 )
2019-06-11 09:25:39 +01:00
Grzegorz Wawiorko
6c999818ee
cl22: Improved CRC calculation ( #133 )
...
* Improved CRC calculation
* Improved CRC calculation - review fix
* Improved CRC calculation - build brake fix
* Improved CRC calculation - remove external initializaiton
2019-04-18 15:00:45 +01:00
Kevin Petit
d43f576588
Fix error message in SVM test
...
Signed-off-by: Xin Jin <xin.jin@arm.com >
2019-04-11 13:03:46 +01:00
Radek Szymanski
07196c351a
cl22: Use single array for function list ( #148 )
...
Signed-off-by: Radek Szymanski <radek.szymanski@arm.com >
2019-04-10 12:30:38 +01:00
Grzegorz Wawiorko
394dece0d7
Khronos Bug 15617 SVM memory migrate test issues ( #125 )
2019-04-10 10:54:03 +01:00
Grzegorz Wawiorko
07ae6422b6
Khronos Bug 15208 test_set_kernel_exec_info_svm_ptrs stack corruption ( #121 )
2019-04-10 10:26:58 +01:00
Grzegorz Wawiorko
5a0ef9fef7
Fix resource leak in SVM test ( #127 )
...
The buffer was never unmapped.
Change-Id: If8be7f9f08ae7c26a537039f2bbeeb674cc30059
Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com >
2019-03-26 09:10:15 +00:00
Kevin Petit
b6446a2f1d
Remove build systems other than CMake
...
Make it clear that CMake is the only supported build system.
Signed-off-by: Kevin Petit <kevin.petit@arm.com >
2019-03-15 09:47:56 +00:00
Kevin Petit
95b040bec2
Synchronise with Khronos-private Gitlab branch
...
The maintenance of the conformance tests is moving to Github.
This commit contains all the changes that have been done in
Gitlab since the first public release of the conformance tests.
Signed-off-by: Kevin Petit kevin.petit@arm.com
2019-03-05 16:24:50 +00:00
Kedar Patil
2821bf1323
Initial open source release of OpenCL 2.2 CTS.
2017-05-16 18:44:33 +05:30