vangthao95
2174715160
Fix incompatiable pointer type warning for device_execution test ( #2558 )
...
There are multiple incompatiable pointer types warnings when compiling
the device_execution test with clang. There was an upstream llvm patch
that will turn these warnings into an error
https://github.com/llvm/llvm-project/pull/157364 .
To not encounter this issue in the future, fix these warnings by
changing the parameter types.
```
warning: incompatible pointer types passing '__global ulong (*)[512]' (aka '__global unsigned long (*)[512]') to parameter of type 'const __generic ulong *' (aka 'const __generic unsigned long *') [-Wincompatible-pointer-types]
37 | void (^checkBlock) (void) = ^{ check_res(tid, &value, res); };
| ^~~~~~
note: passing argument to parameter 'value' here
--
warning: incompatible pointer types passing '__global int *const __private' to parameter of type '__global atomic_uint *' (aka '__global _Atomic(unsigned int) *') [-Wincompatible-pointer-types]
10 | void (^kernelBlock)(void) = ^{ block_fn(len, val); };
| ^~~
note: passing argument to parameter 'val' here
--
warning: incompatible pointer types passing '__global int *const __private' to parameter of type '__global atomic_uint *' (aka '__global _Atomic(unsigned int) *') [-Wincompatible-pointer-types]
10 | void (^kernelBlock)(void) = ^{ block_fn(len, val); };
| ^~~
note: passing argument to parameter 'val' here
--
warning: incompatible pointer types passing '__global int *const __private' to parameter of type '__global atomic_uint *' (aka '__global _Atomic(unsigned int) *') [-Wincompatible-pointer-types]
10 | void (^kernelBlock)(void) = ^{ block_fn(len, val); };
| ^~~
note: passing argument to parameter 'val' here
--
warning: incompatible pointer types passing '__global int *const __private' to parameter of type '__global atomic_uint *' (aka '__global _Atomic(unsigned int) *') [-Wincompatible-pointer-types]
10 | void (^kernelBlock)(void) = ^{ block_fn(len, val); };
| ^~~
note: passing argument to parameter 'val' here
--
warning: incompatible pointer types passing '__global int *const __private' to parameter of type '__global atomic_uint *' (aka '__global _Atomic(unsigned int) *') [-Wincompatible-pointer-types]
10 | void (^kernelBlock)(void) = ^{ block_fn(len, val); };
| ^~~
note: passing argument to parameter 'val' here
--
warning: incompatible pointer types passing '__global int *const __private' to parameter of type '__global atomic_uint *' (aka '__global _Atomic(unsigned int) *') [-Wincompatible-pointer-types]
10 | void (^kernelBlock)(void) = ^{ block_fn(len, val); };
| ^~~
note: passing argument to parameter 'val' here
```
2025-11-26 16:25:02 -08:00
Romaric Jodin
8e125bd2e8
Refactor wimpy feature ( #2507 )
...
- Make it a common parameter in harness using either '-w', '--wimpy' or
'CL_WIMPY_MODE' environment variable.
- Remove all test specific wimpy variable.
---------
Co-authored-by: Kévin Petit <kpet@free.fr >
2025-09-02 09:47:44 -07:00
Ahmed Hesham
bb331c2c92
Migrate device_execution suite to the new test registration framework ( #2323 )
...
Contributes to #2181 .
Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com >
2025-03-11 21:54:22 +00:00
Sven van Haastregt
1139f54bde
device_execution: fix -Wformat warnings ( #1938 )
...
Printing of a `size_t` requires the `%zu` specifier.
Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com >
2024-04-15 13:37:07 +02:00
Sven van Haastregt
d8ad10d1ea
device_execution: fix CL_QUEUE_* in error messages ( #1896 )
...
When reporting errors from `clCreateCommandQueueWithProperties`,
report the correct property names. In particular:
`CL_QUEUE_DEVICE` should be `CL_QUEUE_ON_DEVICE`.
`CL_QUEUE_DEFAULT` should be `CL_QUEUE_ON_DEVICE_DEFAULT`.
Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com >
2024-03-12 09:36:02 -07:00
Sven van Haastregt
729cd8b7a9
[NFC] device_execution: use raw string literals for block kernels ( #1767 )
...
Modernize by using raw string literals, which makes the kernel sources
easier to read/extract.
Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com >
2023-06-28 09:34:07 +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
Kedar Patil
2821bf1323
Initial open source release of OpenCL 2.2 CTS.
2017-05-16 18:44:33 +05:30