aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
5 daysAdded new query for cl_khr_semaphore test to verify device handle list (#1942)upstream-mainMarcin Hajder
This PR addresses the first part of #1691 issue and #1875 issue.
5 daysrelationals: fix out of bounds accesses in shuffle test (#1961)Sven van Haastregt
The values in `src` are indices into an array in `get_order_string()`. Not initializing `src` resulted in out of bounds accesses there. It seems that when the out of bounds accesses happened, the result of `get_order_string()` was not actually used, so at least the test was not using random data. Fix the issue as it prevents a clean run of this test with e.g. AddressSanitizer. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
10 daysEscape subnormal values (#1953)Shilei Tian
Currently we don't escape subnormal values when generating image data. In sampler read tests, we use `!=` to check the two values even when it is floating-point data, which requires the two values are bitwise equal. However, a sampler might flush subnormal values, causing the test case to fail. In this patch, when generating random image data, we escape subnormal values.
11 dayscl_khr_kernel_clock: fix builtin function names (#1968)Sven van Haastregt
According to the [specification](https://registry.khronos.org/OpenCL/specs/3.0-unified/html/OpenCL_C.html#kernel-clock-functions), the work_group and sub_group variants have an `_` in them. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
11 daysmem_host_flags: check returned pointer for NULL (#1924)Sven van Haastregt
The specification states that `clEnqueueMapImage` and `clEnqueueMapBuffer` should return NULL on error. Ensure this is checked. This testing gap was caught by a compiler warning about `dataPtr` being written but not read. With this fix, there are no more Wunused-but-set-variable warnings in this test, so reenable the warning. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
12 daysImport OpenCL exported semaphore in Vulkan (#1898)saurabhnv
Except for SYNC_FD, current implementation doesn't import exported OpenCL semaphore in Vulkan and ends up doing signal and wait on essentially two unrelated semaphores (one created in OpenCL and one in Vulkan). Since OpenCL exports the semaphore, import that in Vulkan to perform signal/wait on the same underlying payload.
12 daysVulkan interop coverage (#1887)pkaur19
Added Code changes for 1D, 1DList, 3D, 3DList and test cases.
12 daysAdded negative tests for clCommandFill[Buffer, Image]KHR (#1944)Kamil-Goras-Mobica
According to description https://github.com/KhronosGroup/OpenCL-CTS/issues/1668
2024-05-22Negative tests clCommandSvmMem[cpy, Fill]KHR (#1956)Kamil-Goras-Mobica
According to description https://github.com/KhronosGroup/OpenCL-CTS/issues/1668
2024-05-21add missing header (#1966)Romaric Jodin
test_common/harness/integer_ops_test_info.h is using std::vector but is not including the header. This is breaking on Google internal CI.
2024-05-21Add cl_khr_kernel_clock tests (#1960)Ahmed
Adds cl_khr_kernel_clock test. Also fixes failure in the compiler defines for extension compiler subtest when cl_khr_kernel_clock is supported.
2024-05-21basic: workaround MSVC compiler bug with post-increment operator (#1939)Sreelakshmi Haridas Maruthur
Prevent the compiler from optimizing away initialization loops
2024-05-21test allocations: restore small number of work items in case of reduction ↵Grzegorz Wawiorko
(#1932)
2024-05-21Add acquire/release (#1899)joshqti
Add acquire/release commands where appropriate. This is related to 1886.
2024-05-21Raw10/12 CTS tests (#1830)John Kesapides
Add support for cl_ext_image_raw10_raw12 testing on test_image_streams. Signed-off-by: John Kesapides <john.kesapides@arm.com>
2024-05-21Add negative test for test_svm size check (#1802)niranjanjoshi121
Isuue #875 clarified that CL_INVALID_BUFFER_SIZE should be returned if clCreateBuffer is passed a pointer returned by clSVMAlloc as its host_ptr and the size of the buffer exceeds the size of the SVM allocation. Add a new negative test to ensure CL_INVALID_BUFFER_SIZE is returned when the size of buffer exceeds the size of the SVM allocation. Fixes #1701
2024-05-21Negative tests for commandCopyImage[ToBuffer]KHR (#1943)Kamil-Goras-Mobica
According to description https://github.com/KhronosGroup/OpenCL-CTS/issues/1668
2024-05-21Corrections for printf test with floating point limits arguments (#1940)Marcin Hajder
According to work plan from issue #1058
2024-05-14Added negative tests for clCommandBarrierWithWaitListKHR (#1937)Kamil-Goras-Mobica
According to description https://github.com/KhronosGroup/OpenCL-CTS/issues/1668
2024-05-14Added negative test commandNDRangeKernel (#1936)Kamil-Goras-Mobica
According to description https://github.com/KhronosGroup/OpenCL-CTS/issues/1668
2024-05-07Fix build breakage introduced by #1911 (#1958)Sreelakshmi Haridas Maruthur
2024-04-26compiler: fix memory leak (#1950)Sven van Haastregt
The `test_compiler compiler_defines_for_extensions` test did not free all `malloc`'ed memory. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
2024-04-21Added negative tests for clEnqueueCommandBufferKHR (#1931)Kamil-Goras-Mobica
* Added negative tests for clEnqueueCommandBufferKHR * Added blocking the clEnqueueCommandBufferKHR call on a user event * Added finalizing buffer before enqueuing
2024-04-19Added negative tests for clRetainCommandBufferKHR, clReleaseCommandBu… (#1928)Kamil-Goras-Mobica
* Added negative tests for clRetainCommandBufferKHR, clReleaseCommandBufferKHR, clFinalizeCommandBufferKHR * Added blocking the clEnqueueCommandBufferKHR call on a user event * Changed cl_event to clEventWrapper
2024-04-16test_vulkan: don't throw from destructors (#1947)Sven van Haastregt
Only report an error (and include the error code), but don't throw an exception as that would call `terminate`. Failure to release resources is not fatal in other parts of the CTS. This fixes `-Wterminate` warnings: warning: ‘throw’ will always call ‘terminate’ [-Wterminate] note: in C++11 destructors default to ‘noexcept’ Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
2024-04-16Remove dead code (#1946)Pedro Olsen Ferreira
This is 7-year old CMake code that never did anything because the function invocation is missing the PROPERTIES keyword. Adding the keyword results in build errors, so just drop the dead code since everything seems to be working without it anyway.
2024-04-16Delete stale files (#1945)Pedro Olsen Ferreira
These aren't included or built anywhere.
2024-04-16fix: move suggested_local_size to test_api (#1916)David Tobolik
2024-04-16Test IMAGE1D_BUFFER in more scenario (#1806)Romaric Jodin
* cl_copy_images * cl_get_info * cl_fill_image * cl_read_write_image * kernel_image_methods * IMAGE1D_BUFFER cannot be created with (USE_|ALLOC_|COPY_)_HOST_PTR * do not allow mipmap with 1D buffer * adjust M to be within maximum_sizes and max_pixels * remove unused variables * make sure M will never be 0 * fix region[0] after refactoring removing mipmap * fix formatting * format with clang-format-11 * fix image1d_buffer creation with gEnablePitch * add missing case in switch * use align_malloc when CL version is at least 2.0 * use CL_DEVICE_NUMERIC_VERSION and align_free * fix free of pitch buffer * fix formatting * fix formatting * fix data->is_aligned
2024-04-16Corrections for negative tests for function CreateCommandBufferKHR (#1915)Kamil-Goras-Mobica
2024-04-15device_execution: fix -Wformat warnings (#1938)Sven van Haastregt
Printing of a `size_t` requires the `%zu` specifier. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
2024-04-09Fix cross-context semaphore signals (#1886)joshqti
Multi-context test was not correctly testing cross-context functionality. Use semaphore import/export mechanism to signal across contexts.
2024-04-09Added negative tests for clGetCommandBufferInfoKHR (#1929)Kamil-Goras-Mobica
* Added negative tests for clGetCommandBufferInfo * Replaced param_value_size values from 0 to sizeof() - 1
2024-04-09Corrections for mutable arguments tests (#1921)Marcin Hajder
* Corrections to mutable arguments tests -added verification of device capabilities against mutable arguments -corrected fail of 2 tests with Construction Kit -general cleanup * cleanup corrections * restored relaxed version of mutable arguments tests * corrections to strengthen the test around SVM arguments
2024-04-05spirv_new: fix -Wformat warnings (#1933)Sven van Haastregt
`log_error` was invoked from a template function, but the format specifiers weren't adjusted for the template parameter types. Use a stringstream for printing instead. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
2024-04-04fix the type used for bitfield_extract_signed (#1913)Ben Ashbaugh
We compute the reference values using unsigned types exclusively, even when the input type is signed. This fixes one place where an signed type was inadvertently used.
2024-04-04[NFC] subgroups: clarify bs128 to uint4 conversion (#1893)Sven van Haastregt
There appears to have been some confusion over `uint_mask` during the initial reviews of the subgroup tests. Add a comment to clarify the purpose of the mask. Use a 32-bit all-ones mask (`0xffffffff`) instead of a 64-bit all-ones mask to further clarify the intent, that is, don't delay discarding the upper 32 bits until the assignment but mask them out immediately. Fixes https://github.com/KhronosGroup/OpenCL-CTS/issues/1203 Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
2024-04-02Shader -> SPIR-V at CTS build time (#1849) (#1878)saurabhnv
* Shader -> SPIR-V at CTS build time (#1849) Instead of relying on prebuilt checked-in SPIR-V files, compile available shaders at CTS build time. * Add dependency on glslc (available as part of VULKAN_SDK). * Add optional build flag BUILD_GLSL_SHADERS, OFF by default. * Remove pre-built SPIR-V files * Compile Shader -> SPIR-V at CTS build time * Use glslangValidator for shader -> spirv * Add glslangValidator tool for shader -> spirv * Refactor glslangValidator tool retrieval * Address review comments * Use add_subdirectory() instead of include() * Use glslang instead of glslangValidator * Update Github actions CI to install Vulkan SDK
2024-03-27half: fix -Wformat warnings (#1927)Sven van Haastregt
Avoid casting to `uint64_t` in some places; instead keep the types as `size_t` and use the `%z` length modifier, or as `uint32_t` and use the `%u` specifier. For printing of 64-bit types, use the `PRI*64` macros from <cinttypes> to ensure portability across 32 and 64-bit builds. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
2024-03-26Added test to cover iterative mutable argument update (#1925)Marcin Hajder
* Added test to cover iterative mutable argument update According to issue description #1481 * cosmetic correction * clang format fix * Corrections due to code review
2024-03-26Added test to cover overwritten update of mutable parameters (#1922)Marcin Hajder
* Added test to cover overwritten update of mutable parameters According to issue description #1481 * cosmetic corrections * Corrections due to code review
2024-03-20relationals: fix -Wformat-truncation warning (#1918)Sven van Haastregt
`inOrderStr` and `outOrderStr` are both written into `orderName`, which may not fit as all three are the same size. Decrease the sizes of `inOrderStr` and `outOrderStr`. The new sizes are still sufficiently large to hold the result of `get_order_string`. This commit only affects the error path and does not change the printed output. Error logs before and after this commit should not differ. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
2024-03-20Fix failing image tests for CL_UNORM_INT_101010_2 (#1917)Ahmed Hesham
Add support for `CL_UNORM_INT_101010_2` in the `get_pixel_size` helper function. This fixes the following tests: * memInfo_image_from_buffer_positive * image_from_buffer_alignment_negative * imageInfo_image_from_buffer_positive Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
2024-03-19Added new test to cover multiple commands dispatch in one enqueued update ↵Marcin Hajder
(#1919) * Added new test to cover multiple comands dispatch in one enqueued update According to issue description #1481 * clang format correction * Few minor corrections * cosmetic corrections
2024-03-19Added new tests for simultaneous use with mutable dispatch (#1912)Marcin Hajder
* Added new tests for simultaneous use with mutable dispatch -cross queue simultaneous use -in-order queue with simultaneous use According to issue description #1481 * Several corrections applied: -reordered Skip conditions to check valid simultaneous_use_support flag -removed unnecessary SetUpKernel call -initialize kernel and memory buffers from BasicCommandBufferTest instead BasicMutableCommandBufferTest * Corrections for command buffer creation to request simultaneous property
2024-03-19configure depdendabot github actions version updates (#1923)Ben Ashbaugh
2024-03-18musl-libc doesn't provide GNU version of strerror_r but uses BSD/XSI one (#1911)David Heidelberg
* harness: correct include and sort warning redirecting incorrect #include <sys/errno.h> to <errno.h> Signed-off-by: David Heidelberg <david@ixit.cz>
2024-03-18[CI] Upgrade to actions/checkout@v4 (#1920)Sven van Haastregt
Node.js 16 actions are deprecated, so update to v4 which uses Node 20. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
2024-03-12device_execution: fix CL_QUEUE_* in error messages (#1896)Sven van Haastregt
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-12Added command buffer test with all mutable parameters dispatch (#1905)Marcin Hajder
* Added command buffer with full mutable dispatch test According to #1481 issue description, point 2.1 * Corrected the test to handle all available mutable properties According to #1481 issue description, point 2.1