Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge KhronoGroup/OpenCL-CTS: main into nikhiljnv/OpenCL-CTS:KhronosGroup-master #43

Open
wants to merge 547 commits into
base: KhronosGroup-master
Choose a base branch
from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Oct 10, 2023

  1. Add ffp-contract=off Compilation flag for CTS build (#1824)

    * Fix enqueue_flags test to use correct barrier type.
    
    Currently, enqueue_flags test uses CLK_LOCAL_MEM_FENCE.
    Use CLK_GLOBAL_MEM_FENCE instead as all threads across work-groups
    need to wait here.
    
    * Add check for support for Read-Wrie images
    
    Read-Write images have required OpenCL 2.x.
    Read-Write image tests are already being skipped
    for 1.x devices.
    With OpenCL 3.0, read-write images being optional,
    the tests should be run or skipped
    depending on the implementation support.
    
    Add a check to decide if Read-Write images are
    supported or required to be supported depending
    on OpenCL version and decide if the tests should
    be run on skipped.
    
    Fixes issue #894
    
    * Fix formatting in case of Read-Write image checks.
    
    Fix formatting in case of Read-write image checks.
    Also, combine two ifs into one in case of
    kerne_read_write tests
    
    * Fix some more formatting for RW-image checks
    
    Remove unnecessary spaces at various places.
    Also, fix lengthy lines.
    
    * Fix malloc-size calculation in test imagedim
    
    unsigned char size is silently assumed to be 1
    in imagedim test of test_basic.
    Pass sizeof(type) in malloc size calculation.
    Also, change loop variable from signed to unsigned.
    Add checks for null pointer for malloced memory.
    
    * Initial CTS for external sharing extensions
    
    Initial set of tests for below extensions
    with Vulkan as producer
    1. cl_khr_external_memory
    2. cl_khr_external_memory_win32
    3. cl_khr_external_memory_opaque_fd
    4. cl_khr_external_semaphore
    5. cl_khr_external_semaphore_win32
    6. cl_khr_external_semaphore_opaque_fd
    
    * Updates to external sharing CTS
    
    Updates to external sharing CTS
    1. Fix some build issues to remove unnecessary, non-existent files
    2. Add new tests for platform and device queries.
    3. Some added checks for VK Support.
    
    * Update CTS build script for Vulkan Headers
    
    Update CTS build to clone Vulkan Headers
    repo and pass it to CTS build
    in preparation for external memory
    and semaphore tests
    
    * Fix Vulkan header path
    
    Fix Vulkan header include path.
    
    * Add Vulkan loader dependency
    
    Vulkan loader is required to build
    test_vulkan of OpenCL-CTS.
    Clone and build Vulkan loader as prerequisite
    to OpenCL-CTS.
    
    * Fix Vulkan loader path in test_vulkan
    
    Remove arch/os suffix in Vulkan loader path
    to match vulkan loader repo build.
    
    * Fix warnings around getHandle API.
    
    Return type of getHandle is defined
    differently based on win or linux builds.
    Use appropriate guards when using API
    at other places.
    While at it remove duplicate definition
    of ARRAY_SIZE.
    
    * Use ARRAY_SIZE in harness.
    
    Use already defined ARRAY_SIZE macro
    from test_harness.
    
    * Fix build issues for test_vulkan
    
    Fix build issues for test_vulkan
    1. Add cl_ext.h in common files
    2. Replace cl_mem_properties_khr with cl_mem_properties
    3. Replace cl_external_mem_handle_type_khr with
    cl_external_memory_handle_type_khr
    4. Type-cast malloc as required.
    
    * Fix code formatting.
    
    Fix code formatting to
    get CTS CI builds clean.
    
    * Fix formatting fixes part-2
    
    Another set of formatting fixes.
    
    * Fix code formatting part-3
    
    Some more code formatting fixes.
    
    * Fix code formatting issues part-4
    
    More code formatting fixes.
    
    * Formatting fixes part-5
    
    Some more formatting fixes
    
    * Fix formatting part-6
    
    More formatting fixes continued.
    
    * Code formatting fixes part-7
    
    Code formatting fixes for image
    
    * Code formatting fixes part-8
    
    Fixes for platform and device query tests.
    
    * Code formatting fixes part-9
    
    More formatting fixes for vulkan_wrapper
    
    * Code formatting fixes part-10
    
    More fixes to wrapper header
    
    * Code formatting fixes part-11
    
    Formatting fixes for api_list
    
    * Code formatting fixes part-12
    
    Formatting fixes for api_list_map.
    
    * Code formatting changes part-13
    
    Code formatting changes for utility.
    
    * Code formatting fixes part-15
    Formatting fixes for wrapper.
    
    * Misc Code formatting fixes
    
    Some more misc code formatting fixes.
    
    * Fix build breaks due to code formatting
    
    Fix build issues arised with recent
    code formatting issues.
    
    * Fix presubmit script after merge
    
    Fix presubmit script after merge conflicts.
    
    * Fix Vulkan loader build in presubmit script.
    
    Use cmake ninja and appropriate toolchain
    for Vulkan loader dependency to fix
    linking issue on arm/aarch64.
    
    * Use static array sizes
    
    Use static array sizes to fix
    windows builds.
    
    * Some left-out formatting fixes.
    
    Fix remaining formatting issues.
    
    * Fix harness header path
    
    Fix harness header path
    While at it, remove Misc and test pragma.
    
    * Add/Fix license information
    
    Add Khronos License info for test_vulkan.
    Replace Apple license with Khronos
    as applicable.
    
    * Fix headers for Mac OSX builds.
    
    Use appropriate headers for
    Mac OSX builds
    
    * Fix Mac OSX builds.
    
    Use appropriate headers for
    Mac OSX builds.
    Also, fix some build issues
    due to type-casting.
    
    * Fix new code formatting issues
    
    Fix new code formatting issues
    with recent MacOS fixes.
    
    * Add back missing case statement
    
    Add back missing case statement
    that was accidentally removed.
    
    * Disable USE_GAS for Vulkan Loader build.
    
    Disable USE_GAS for Vulkan Loader build
    to fix aarch64 build.
    
    * Fixes to OpenCL external sharing tests
    
    Fix clReleaseSemaphore() API.
    Fix copyright year.
    Some other minor fixes.
    
    * Improvements to OpenCL external sharing CTS
    
    Use SPIR-V shaders instead of NV extension path
    from GLSL to Vulkan shaders.
    Fixes for lower end GPUs to use limited memory.
    Update copy-right year at some more places.
    
    * Fix new code formatting issues.
    
    Fix code formatting issues with
    recent changes for external sharing
    tests.
    
    * More formatting fixes.
    
    More formatting fixes for recent
    updates to external sharing tests.
    
    * Final code formatting fixes.
    
    Minor formatting fixes to get
    format checks clean.
    
    * Update extension list of test_compiler
    
    Upate extension list of test_compiler
    with missing external memory and semaphore
    extensions
    
    * Add ffp-contract=off Compilation flag for CTS build.
    
    GCC defaults to using ffp-contract=fast even when fast math is disabled in the
    case of GNU C
    This creates precision issues when comparing the results with that of x86_64.
    GNU options reference:
    https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#
    
    This fix is to disable floating-point expression contractions with
    flag ffp-contract=off for math_brute_force tests
    
    Fixes #1794
    
    * Make fp-contract flag arch-independent, but compiler dependent
    
    Use existing CMake constructs to add fp-contract flag
    so that it automatically checks for compiler support.
    Also, make this change arch-independent.
    
    Fixes #1794
    
    * Fix typo in earlier commit
    
    Fix typo in earlier commit
    
    Fixes #1794
    
    * Remove duplicate addition of ffp-contract flag
    
    ffp-contract flag is currently added via two macros
    Retain add_cxx_flag_if_supported macro and remove
    set_gnulike_module_compile_flags.
    
    Fixes #1794
    
    * Fix typo in earlier commit
    
    Add closing " that was unintentionally removed in previous commit.
    nikhiljnv authored Oct 10, 2023
    Configuration menu
    Copy the full SHA
    a7c33f8 View commit details
    Browse the repository at this point in the history
  2. add tests for clCommandSVMMemcpyKHR & clCommandSVMMemfillKHR (#1821)

    * add tests for clCommandSVMMemcpyKHR & clCommandSVMMemfillKHR
    
    * Fix typo SVMMemfill -> SVMMemFill
    
    * fix clCommandSVMMemFillKHR calls to match extension
    
    * add Khronos license + minor fixes
    
    * review fixes
    franz authored Oct 10, 2023
    Configuration menu
    Copy the full SHA
    af27103 View commit details
    Browse the repository at this point in the history
  3. Add NULL CL_MEM_HOST_PTR check for clGetMemObjectInfo (#1801)

    The spec requires implementations return NULL for CL_MEM_HOST_PTR
    when the flags passed at memory object creation time do not contain
    CL_MEM_USE_HOST_PTR
    
    CTS was not checking this. Add the same check.
    
    Fixes #1752
    niranjanjoshi121 authored Oct 10, 2023
    Configuration menu
    Copy the full SHA
    c73d6a3 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2023

  1. Added cl_khr_fp16 extension support for test_explicit_s2v from basic (#…

    …1713)
    
    * Added cl_khr_fp16 support for test_explicit_s2v from basic (issue #142, basic)
    
    * Cosmetic corrections
    
    * cosmetic fix
    
    * Added correction to distinguish signed and unsigned char types for ARM architecture tests
    
    * Added missing pieces of convertion procedure to support half
    
    * Corrected condition to verify if additional pragma is necessary (issue #142, basic)
    
    * Add NaN check for half to float conversion
    
    * check-format fixes
    
    * Add NaN check for all float types
    
    Use std::isnan for float/double types.
    
    Change-Id: I005bddccaa3f8490ac59b2aa431ed315733ad143
    
    * Fix Ubuntu build error with isnan macro definition
    
    Change-Id: I671ed826a9631fbbc66d0aa9b674ab00124c7967
    
    * Check format fixes
    
    * NAN define not needed anymore
    
    ---------
    
    Co-authored-by: Vasu Penugonda <vpenugon@qti.qualcomm.com>
    Co-authored-by: Sreelakshmi Haridas <sharidas@quicinc.com>
    3 people authored Oct 17, 2023
    Configuration menu
    Copy the full SHA
    72bb711 View commit details
    Browse the repository at this point in the history
  2. make atomic tests in prog var testing optional (#1799)

    This is helpful for testing progvars on implementations not implementing
    all the optional atomic features.
    karolherbst authored Oct 17, 2023
    Configuration menu
    Copy the full SHA
    c6dd6f2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    40aaa2b View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2023

  1. Delete unused file test_float2int.cpp (#1831)

    Remove left over file from (#1537)
    
    #1537 (comment)
    
    Signed-off-by: John Kesapides <john.kesapides@arm.com>
    JohnKesapidesARM authored Oct 30, 2023
    Configuration menu
    Copy the full SHA
    7e4b59d View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2023

  1. Image2d_from_buffer_positive comparison fix (#1569)

    Only check against 2D image types as per the spec.
    Move some device checks out of the loop.
    Only perform the checks when element_size is a power of two.
    
    Signed-off-by: John Kesapides <john.kesapides@arm.com>
    JohnKesapidesARM authored Nov 7, 2023
    Configuration menu
    Copy the full SHA
    115e999 View commit details
    Browse the repository at this point in the history
  2. c11_atomics: fix uninitialized member accesses (#1819)

    Initialize the `_memoryOrder` and `_memoryScope` members to avoid
    `CBasicTestMemOrderScope::MaxHostThreads()` accessing uninitialized
    data.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Nov 7, 2023
    Configuration menu
    Copy the full SHA
    42434d0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    be626ca View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2023

  1. profiling: fix -Wformat warnings (#1838)

    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Nov 9, 2023
    Configuration menu
    Copy the full SHA
    f08b3f6 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2023

  1. c11_atomics: align signedness of host types (#1816)

    Some `HOST_` types were declared with signedness different from the
    `HOST_ATOMIC_` counterparts, leading to sign-compare warnings when
    comparing between types.  Fix by aligning the signedness.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Nov 14, 2023
    Configuration menu
    Copy the full SHA
    ea6e536 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    482126d View commit details
    Browse the repository at this point in the history
  3. Reduce the Vulkan interop buffer kernel workgroup size to 256 (#1828)

    Using `local_size_x = 512` in the shader used in the Vulkan interop
    tests fails on older hardware because this exceeds the maximum barrier
    size limit.
    
    Changed to 256, which is still a multiple of 32 and 64,
    and is below the hardware limitations. The tests are not performance
    tests anyways, so the performance penalty, if any, is acceptable.
    
    Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
    ahesham-arm authored Nov 14, 2023
    Configuration menu
    Copy the full SHA
    8b1a44f View commit details
    Browse the repository at this point in the history
  4. switch to the new memory and semaphore specific device handle lists (#…

    …1814)
    
    * switch to the new memory and semaphore specific device handle lists
    
    * remove support for older headers
    
    * dummy commit
    bashbaug authored Nov 14, 2023
    Configuration menu
    Copy the full SHA
    eec46a0 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2023

  1. Reduce the Vulkan interop buffer kernel workgroup size to 128 (#1846)

    Vulkan guarantees 128 is always supported.
    
    Relates to #1828
    
    Signed-off-by: Kevin Petit <kevin.petit@arm.com>
    kpet authored Nov 23, 2023
    Configuration menu
    Copy the full SHA
    5815e2c View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2023

  1. Semaphore types bug fixes revised (#1822)

    * Added support for SYNC_FD and other handle types
    
    * Fix consistency test
    
    Deleted test cases that are no longer testable
    according to the spec.
    
    * Fix multi-import tests
    
    -Delete obsolete code relating to offsets
    -Propagate dedicated memory change
    
    * Fix error handling
    
    Some subtests did not fail on incorrect result.
    Changes to macros to fail, so this does not occur
    again.
    
    * Delete invalid test cases
    
    Test cases are not related to this extension.
    
    * External memory test
    
    Add support for any handle type supported by
    the platform.
    
    Change-Id: I6765fde5e7929988f49bfbf2df2f41d5263b6abc
    
    * Update multi-import tests to use new semaphore types
    
    * Fix formatting
    
    * Addressed review comments. Deleted VULKAN_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_NT_KMT as it appears to be redundant.
    joshqti authored Nov 29, 2023
    Configuration menu
    Copy the full SHA
    f5bd92b View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2023

  1. Increase the number of work items used by the allocations test (#1852)

    * Increase the number of work items used by the allocations test
    
    The test uses a fixed number of work items to process very large
    buffers and images. As devices support more and more memory, this
    leads to an ever-increasing amount of work done in each work item.
    This results in some implementations and devices hitting timeout
    issues.
    
    Furthermore, a greater number of work items can provide performance
    benefits on some devices.
    
    Long term, this test should be redesigned to scale the number
    of threads dynamically as a function of the max allocation size.
    
    Signed-off-by: Kevin Petit <kevin.petit@arm.com>
    
    * formatting and add parentheses
    
    ---------
    
    Signed-off-by: Kevin Petit <kevin.petit@arm.com>
    kpet authored Dec 5, 2023
    Configuration menu
    Copy the full SHA
    0fa6f23 View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2023

  1. allocations: Move results array from stack to heap (#1857)

    * allocations: Fix stack overflow
    
    * check format fixes
    lakshmih authored Dec 12, 2023
    Configuration menu
    Copy the full SHA
    9a8fd1f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a73f2b3 View commit details
    Browse the repository at this point in the history
  3. thread_dimensions: Avoid combinations of very small LWS and very larg…

    …e GWS (#1856)
    
    Modify the existing condition to include extremely small LWS like
    1x1 on large GWS values
    lakshmih authored Dec 12, 2023
    Configuration menu
    Copy the full SHA
    352e707 View commit details
    Browse the repository at this point in the history
  4. c11_atomics: Reduce the loopcounter for sequential consistency tests (#…

    …1853)
    
    Reduce the loop from 1000000 to 500000 since the former value
    makes the test run too long and cause system issues on certain
    platforms
    lakshmih authored Dec 12, 2023
    Configuration menu
    Copy the full SHA
    c8ebba8 View commit details
    Browse the repository at this point in the history
  5. Limit individual allocation size using the global memory size (#1835)

    Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
    ahesham-arm authored Dec 12, 2023
    Configuration menu
    Copy the full SHA
    344a883 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2023

  1. geometrics: fix Wsign-compare warnings (#1855)

    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Dec 14, 2023
    Configuration menu
    Copy the full SHA
    47d5d37 View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2023

  1. integer_ops: fix -Wformat warnings (#1860)

    The main sources of warnings were:
    
     * Printing of a `size_t` which requires the `%zu` specifier.
    
     * Printing of `cl_long`/`cl_ulong` which is now done using the
       `PRI*64` macros to ensure portability across 32 and 64-bit builds.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Dec 20, 2023
    Configuration menu
    Copy the full SHA
    b36b2d5 View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2023

  1. Replace OBSOLETE_FORAMT with OBSOLETE_FORMAT (#1776)

    * Replace OBSOLETE_FORAMT with OBSOLETE_FORMAT
    
    In imageHelpers.cpp and few other places in image tests, OBSOLETE_FORMAT is misspelled as OBSOLETE_FORAMT.
    Fix misspelling by replcaing it with OBSOLETE_FORMAT.
    
    Fixes #1769
    
    * Remove code guarded by OBSOLETE_FORMAT
    
    Remove code guarded by OBSOLETE_FORMAT
    as suggested by review comments
    
    Fixes #1769
    
    * Fix formating issues for OBSOLETE_FORMAT changes
    
    Fix formatting issues observed in files while removing
    code guarded by OBSOLETE_FORMAT
    
    Fixes #1769
    
    * Some more formatting fixes
    
    Some more formatting fixes to get CI clean
    
    Fixes #1769
    
    * Final Formating fixes
    
    Final formatting fixes for #1769
    niranjanjoshi121 authored Dec 28, 2023
    Configuration menu
    Copy the full SHA
    b041ec0 View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2024

  1. Enhancement: Thread dimensions user parameters (#1384)

    * Fix format in the test scope
    
    * Add user params to limit testing
    
    Add parameters to reduce amount of testing.
    Helpful for debugging or for machines with lower performance.
    
    * Restore default value
    
    * Print info only if testing params bigger than 0.
    gwawiork authored Jan 9, 2024
    Configuration menu
    Copy the full SHA
    05ba82a View commit details
    Browse the repository at this point in the history
  2. [NFC] conversions: reenable Wunused-but-set-variable (#1845)

    Remove an assigned-to but unused variable.
    
    Reenable the Wunused-but-set-variable warning for the conversions
    suite, as it now compiles cleanly with this warning enabled.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Jan 9, 2024
    Configuration menu
    Copy the full SHA
    115bbb3 View commit details
    Browse the repository at this point in the history
  3. Fix bug of conversion from long to double (#1847)

    * Fix bug of conversion from long to double
    
    It the input is long type, it should be load as long type, not ulong.
    
    * update long2float
    wwXing0 authored Jan 9, 2024
    Configuration menu
    Copy the full SHA
    6606fc2 View commit details
    Browse the repository at this point in the history
  4. math_brute_force: fix exp/exp2 rlx ULP calculation (#1848)

    Fix the ULP error calculation for the `exp` and `exp2` builtins in
    relaxed math mode for the full profile.
    
    Previously, the `ulps` value kept being added to while verifying the
    result buffer in a loop.  `ulps` could even become a `NaN` when the
    input argument being tested was a `NaN`.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Jan 9, 2024
    Configuration menu
    Copy the full SHA
    ebe8aa0 View commit details
    Browse the repository at this point in the history
  5. Enable LARGEADDRESSAWARE for 32 bit compilation (#1858)

    * Enable LARGEADDRESSAWARE for 32 bit compilation
    
    32-bit executables built with MSVC linker have only 2GB virtual memory
    address space by default, which might not be sufficient for some tests.
    
    Enable LARGEADDRESSAWARE linker flag for 32-bit targets to allow tests
    to handle addresses larger than 2 gigabytes.
    
    https://learn.microsoft.com/en-us/cpp/build/reference/largeaddressaware-handle-large-addresses?view=msvc-170
    
    Signed-off-by: Guo, Yilong <yilong.guo@intel.com>
    
    * Apply suggestion
    
    Co-authored-by: Ben Ashbaugh <ben.ashbaugh@intel.com>
    
    ---------
    
    Signed-off-by: Guo, Yilong <yilong.guo@intel.com>
    Co-authored-by: Ben Ashbaugh <ben.ashbaugh@intel.com>
    Nuullll and bashbaug authored Jan 9, 2024
    Configuration menu
    Copy the full SHA
    f924273 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2024

  1. fix return code when readwrite image is not supported (#1873)

    This function (do_test) starts by testing write and read individually.
    Both of them can have errors.
    
    When readwrite image is not supported, the function returns
    TEST_SKIPPED_ITSELF potentially masking errors leading to the test
    returning EXIT_SUCCESS even with errors along the way.
    rjodinchr authored Jan 16, 2024
    Configuration menu
    Copy the full SHA
    7d3db1b View commit details
    Browse the repository at this point in the history
  2. fix macos builds by avoiding double compilation of function_list.cpp …

    …for test_spir (#1866)
    
    * modernize CMakeLists for test_spir
    
    * add the operating system release to the sccache key
    
    * include the math brute force function list vs. building it twice
    bashbaug authored Jan 16, 2024
    Configuration menu
    Copy the full SHA
    0a32b5c View commit details
    Browse the repository at this point in the history
  3. fix the license header on the spirv-new tests (#1865)

    The source files for the spirv-new tests were using the older Khronos
    license instead of the proper Apache license.  Fixed the license in
    all source files.
    bashbaug authored Jan 16, 2024
    Configuration menu
    Copy the full SHA
    1260e7f View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2024

  1. compiler: fix grammar in error message (#1877)

    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Jan 17, 2024
    Configuration menu
    Copy the full SHA
    0bdd0fd View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2024

  1. Updated semaphore tests to use clSemaphoreReImportSyncFdKHR. (#1854)

    * Updated semaphore tests to use clSemaphoreReImportSyncFdKHR.
    
    Additionally updated common semaphore code to handle spec updates
    that restrict simultaneous importing/exporting of handles.
    
    * Fix build issues on CI
    
    * gcc build issues
    
    * Make clReImportSemaphoreSyncFdKHR a required API
    call if cl_khr_external_semaphore_sync_fd is present.
    
    * Implement signal and wait for all semaphore types.
    joshqti authored Jan 23, 2024
    Configuration menu
    Copy the full SHA
    b5f030f View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2024

  1. subgroups: fix for testing too large WG sizes (#1620)

    It seemed to be a typo; the comment says that it
    tries to fetch local size for a subgroup count with
    above max WG size, but it just used the previous
    subgroup count.
    
    The test on purpose sets a SG count to be a larger
    number than the max work-items in the work group.
    Given the minimum SG size is 1 WI, it means that there
    can be a maximum of maximum work-group size of SGs (of
    1 WI of size). Thus, if we request a number of SGs that
    exceeds the local size, the query should fail as expected.
    pjaaskel authored Jan 30, 2024
    Configuration menu
    Copy the full SHA
    8bb89b1 View commit details
    Browse the repository at this point in the history
  2. add SPIR-V version testing (#1861)

    * basic SPIR-V 1.3 testing support
    
    * updated script to compile for more SPIR-V versions
    
    * switch to general SPIR-V versions test
    
    * update copyright text and fix license
    
    * improve output while test is running
    
    * check for higher SPIR-V versions first
    
    * fix formatting
    bashbaug authored Jan 30, 2024
    Configuration menu
    Copy the full SHA
    d5b7d10 View commit details
    Browse the repository at this point in the history
  3. fix the reported platform information for math brute force (#1884)

    When the math brute force test printed the platform version it always
    printed information for the first platform in the system, which could
    be different than the platform for the passed-in device.  Fixed by
    querying the platform from the passed-in device instead.
    bashbaug authored Jan 30, 2024
    Configuration menu
    Copy the full SHA
    7dbf31e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ac7a14e View commit details
    Browse the repository at this point in the history
  5. Minor fixes in mutable dispatch tests. (#1829)

    * Minor fixes in mutable dispatch tests.
    
    * Fix size of newWrapper in MutableDispatchSVMArguments.
    * Fix errnoneus clCommandNDRangeKernelKHR call.
    
    Signed-off-by: John Kesapides <john.kesapides@arm.com>
    
    * * Set the row_pitch for imageInfo in MutableDispatchImage1DArguments
    and MutableDispatchImage2DArguments. The row_pitch is
    used by get_image_size() to calculate the size of
    the host pointers by generate_random_image_data.
    
    Signed-off-by: John Kesapides <john.kesapides@arm.com>
    
    ---------
    
    Signed-off-by: John Kesapides <john.kesapides@arm.com>
    JohnKesapidesARM authored Jan 30, 2024
    Configuration menu
    Copy the full SHA
    d394b0f View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2024

  1. add test for cl_khr_spirv_linkonce_odr (#1226)

    * initial version of the test with placeholders for linkonce_odr linkage
    
    * add OpExtension SPV_KHR_linkonce_odr extension
    
    * add check for extension
    
    * switch to actual LinkOnceODR linkage
    
    * fix formatting
    
    * add a test case to ensure a function with linkonce_odr is exported
    
    * add back the extension check
    
    * fix formatting
    
    * undo compiler optimization and actually add the call to function a
    bashbaug authored Feb 6, 2024
    Configuration menu
    Copy the full SHA
    a256e4a View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2024

  1. [NFC] subgroups: remove unnecessary extern keywords (#1892)

    In C and C++ all functions have external linkage by default.
    
    Also remove the unused `gMTdata` and `test_pipe_functions`
    declarations.
    
    Fixes #1137
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Feb 9, 2024
    Configuration menu
    Copy the full SHA
    e187746 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2024

  1. Added cl_khr_fp16 extension support for test_decorate from spirv_new (#…

    …1770)
    
    * Added cl_khr_fp16 extension support for test_decorate from spirv_new, work in progres
    
    * Complemented test_decorate saturation test to support cl_khr_fp16 extension (issue #142)
    
    * Fixed clang format
    
    * scope of modifications:
    
    -changed naming convention of saturation .spvasm files related to
    test_decorate of spirv_new
    -restored float to char/uchar saturation tests
    -few minor corrections
    
    * fix ranges for half testing
    
    * fix formating
    
    * one more formatting fix
    
    * remove unused function
    
    * use isnan instead of std::isnan
    
    isnan is currently implemented as a macro, not as a function, so
    we can't use std::isnan.
    
    * fix Clang warning about inexact conversion
    
    ---------
    
    Co-authored-by: Ben Ashbaugh <ben.ashbaugh@intel.com>
    shajder and bashbaug authored Feb 13, 2024
    Configuration menu
    Copy the full SHA
    a4b5a30 View commit details
    Browse the repository at this point in the history
  2. add support for custom devices (#1891)

    enable the CTS to run on custom devices
    aharon-abramson authored Feb 13, 2024
    Configuration menu
    Copy the full SHA
    d4f9d04 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2024

  1. add tests for cl_khr_expect_assume (#1888)

    * initial support for cl_khr_expect_assume
    
    Tests expect with 64-bit SPIR-V binaries.
    
    * add support for assume testing with 64-bit binaries
    
    * add 32-bit SPIR-V files
    
    * fix formatting
    
    * address review comments
    bashbaug authored Feb 27, 2024
    Configuration menu
    Copy the full SHA
    0052af2 View commit details
    Browse the repository at this point in the history
  2. Fix -Wformat warnings in various tests (#1868)

    All of these warnings stem from printing `size_t` types, which should
    be done using the `z` length modifier.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Feb 27, 2024
    Configuration menu
    Copy the full SHA
    e0a31a0 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2024

  1. subgroups: Add missing algorithm header (#1906)

    * Was causing a build error with GN
    * fill_and_shuffle_safe_values() in subhelpers.cpp calls std::shuffle()
    * std::shuffle is defined in <algorithm>
    rafaykhurram authored Mar 7, 2024
    Configuration menu
    Copy the full SHA
    26c89df View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2024

  1. Fix uninitialised memory use. (#1909)

    CL_DEVICE_MAX_WORK_GROUP_SIZE is specified to fill in a size_t. By
    asking it to fill in an uninitialised cl_long, on platforms where size_t
    is smaller than cl_long, the high bits of the cl_long remain
    uninitialised.
    hvdijk authored Mar 8, 2024
    Configuration menu
    Copy the full SHA
    6a60db5 View commit details
    Browse the repository at this point in the history
  2. vectors: fix -Wformat warnings (#1910)

    Use the `z` length modifier for printing `size_t` types.
    
    Also fix a typo in the error messages.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Mar 8, 2024
    Configuration menu
    Copy the full SHA
    1f0fa08 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2024

  1. spirv_new: avoid GLOB for sources in CMakeLists (#1907)

    Using `GLOB` here breaks incremental builds when switching between
    branches (e.g. when trying out a pull request).  The CMake
    documentation discourages use of `GLOB` to collect a list of source
    files, so list all source files explicitly.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Mar 11, 2024
    Configuration menu
    Copy the full SHA
    ee504ba View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2024

  1. [subgroups][non_uniform_broadcast] Fix broadcasting index generation (#…

    …1680)
    
    * [subgroups][non_uniform_broadcast] Fix broadcasting index generation
    
    The subgroup size may not be greater than `NR_OF_ACTIVE_WORK_ITEMS`.
    Broadcasting index needs to be reduced in that case.
    
    Otherwise, if subgroup size == `NR_OF_ACTIVE_WORK_ITEMS` == 4, then we
    will encounter "divide-by-zero" error when evaluating `bcast_index %
    (n - NR_OF_ACTIVE_WORK_ITEMS)`.
    
    * Revert "[subgroups][non_uniform_broadcast] Fix broadcasting index generation"
    
    This reverts commit 9bbab53.
    
    * [subgroups][non_uniform_broadcast] Fix broadcasting index generation
    
    Dynamically activate half of the work items in the current subgroup
    instead of hardcoding as `NR_OF_ACTIVE_WORK_ITEMS`.
    
    * Apply suggestion
    Nuullll authored Mar 12, 2024
    Configuration menu
    Copy the full SHA
    a045f76 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    90cefbb View commit details
    Browse the repository at this point in the history
  3. Add NULL CL_MEM_HOST_PTR check for all flag combinations (#1850)

    * Add NULL CL_MEM_HOST_PTR check for clGetMemObjectInfo
    
    The spec requires implementations return NULL for CL_MEM_HOST_PTR
    when the flags passed at memory object creation time do not contain
    CL_MEM_USE_HOST_PTR
    
    CTS was not checking this. Add the same check.
    
    Fixes #1752
    
    * Add NULL CL_MEM_HOST_PTR check for all flag combinations
    
    As part of suggestions to #1801, add NULL CL_MEM_HOST_PTR
    check for all flag combinations.
    
    Fixes #1752
    
    * Fix formatting issues
    niranjanjoshi121 authored Mar 12, 2024
    Configuration menu
    Copy the full SHA
    6530ae4 View commit details
    Browse the repository at this point in the history
  4. Added command buffer test with all mutable parameters dispatch (#1905)

    * 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
    shajder authored Mar 12, 2024
    Configuration menu
    Copy the full SHA
    ffb0265 View commit details
    Browse the repository at this point in the history
  5. 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>
    svenvh authored Mar 12, 2024
    Configuration menu
    Copy the full SHA
    d8ad10d View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2024

  1. [CI] Upgrade to actions/checkout@v4 (#1920)

    Node.js 16 actions are deprecated, so update to v4 which uses Node 20.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Mar 18, 2024
    Configuration menu
    Copy the full SHA
    4c318a1 View commit details
    Browse the repository at this point in the history
  2. musl-libc doesn't provide GNU version of strerror_r but uses BSD/XSI …

    …one (#1911)
    
    * harness: correct include and sort
    
    warning redirecting incorrect #include <sys/errno.h> to <errno.h>
    
    Signed-off-by: David Heidelberg <david@ixit.cz>
    okias authored Mar 18, 2024
    Configuration menu
    Copy the full SHA
    77293c8 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2024

  1. Configuration menu
    Copy the full SHA
    109c0a1 View commit details
    Browse the repository at this point in the history
  2. Added new tests for simultaneous use with mutable dispatch (#1912)

    * 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
    shajder authored Mar 19, 2024
    Configuration menu
    Copy the full SHA
    8f3ef08 View commit details
    Browse the repository at this point in the history
  3. Added new test to cover multiple commands dispatch in one enqueued up…

    …date (#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
    shajder authored Mar 19, 2024
    Configuration menu
    Copy the full SHA
    da4a30d View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2024

  1. Fix failing image tests for CL_UNORM_INT_101010_2 (#1917)

    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>
    ahesham-arm authored Mar 20, 2024
    Configuration menu
    Copy the full SHA
    0deddf2 View commit details
    Browse the repository at this point in the history
  2. relationals: fix -Wformat-truncation warning (#1918)

    `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>
    svenvh authored Mar 20, 2024
    Configuration menu
    Copy the full SHA
    049b719 View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2024

  1. Added test to cover overwritten update of mutable parameters (#1922)

    * Added test to cover overwritten update of mutable parameters
    
    According to issue description #1481
    
    * cosmetic corrections
    
    * Corrections due to code review
    shajder authored Mar 26, 2024
    Configuration menu
    Copy the full SHA
    349427e View commit details
    Browse the repository at this point in the history
  2. Added test to cover iterative mutable argument update (#1925)

    * Added test to cover iterative mutable argument update
    
    According to issue description #1481
    
    * cosmetic correction
    
    * clang format fix
    
    * Corrections due to code review
    shajder authored Mar 26, 2024
    Configuration menu
    Copy the full SHA
    9636117 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2024

  1. half: fix -Wformat warnings (#1927)

    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>
    svenvh authored Mar 27, 2024
    Configuration menu
    Copy the full SHA
    83203db View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2024

  1. Shader -> SPIR-V at CTS build time (#1849) (#1878)

    * 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
    saurabhnv authored Apr 2, 2024
    Configuration menu
    Copy the full SHA
    7f1caf4 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2024

  1. [NFC] subgroups: clarify bs128 to uint4 conversion (#1893)

    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 #1203
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Apr 4, 2024
    Configuration menu
    Copy the full SHA
    48003e9 View commit details
    Browse the repository at this point in the history
  2. fix the type used for bitfield_extract_signed (#1913)

    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.
    bashbaug authored Apr 4, 2024
    Configuration menu
    Copy the full SHA
    27e47e9 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2024

  1. spirv_new: fix -Wformat warnings (#1933)

    `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>
    svenvh authored Apr 5, 2024
    Configuration menu
    Copy the full SHA
    5fe1cc0 View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2024

  1. Corrections for mutable arguments tests (#1921)

    * 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
    shajder authored Apr 9, 2024
    Configuration menu
    Copy the full SHA
    f2a3073 View commit details
    Browse the repository at this point in the history
  2. Added negative tests for clGetCommandBufferInfoKHR (#1929)

    * Added negative tests for clGetCommandBufferInfo
    
    * Replaced param_value_size values from 0 to sizeof() - 1
    kamil-goras-mobica authored Apr 9, 2024
    Configuration menu
    Copy the full SHA
    d0300d1 View commit details
    Browse the repository at this point in the history
  3. Fix cross-context semaphore signals (#1886)

    Multi-context test was not correctly
    testing cross-context functionality.
    Use semaphore import/export mechanism
    to signal across contexts.
    joshqti authored Apr 9, 2024
    Configuration menu
    Copy the full SHA
    48b9878 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2024

  1. 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>
    svenvh authored Apr 15, 2024
    Configuration menu
    Copy the full SHA
    1139f54 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. Configuration menu
    Copy the full SHA
    7fa567c View commit details
    Browse the repository at this point in the history
  2. Test IMAGE1D_BUFFER in more scenario (#1806)

    * 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
    rjodinchr authored Apr 16, 2024
    Configuration menu
    Copy the full SHA
    be8b56d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    61a220f View commit details
    Browse the repository at this point in the history
  4. Delete stale files (#1945)

    These aren't included or built anywhere.
    silverclaw authored Apr 16, 2024
    Configuration menu
    Copy the full SHA
    a977e35 View commit details
    Browse the repository at this point in the history
  5. Remove dead code (#1946)

    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.
    silverclaw authored Apr 16, 2024
    Configuration menu
    Copy the full SHA
    43237f7 View commit details
    Browse the repository at this point in the history
  6. test_vulkan: don't throw from destructors (#1947)

    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>
    svenvh authored Apr 16, 2024
    Configuration menu
    Copy the full SHA
    7dc9593 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2024

  1. Added negative tests for clRetainCommandBufferKHR, clReleaseCommandBu… (

    #1928)
    
    * Added negative tests for clRetainCommandBufferKHR, clReleaseCommandBufferKHR, clFinalizeCommandBufferKHR
    
    * Added blocking the clEnqueueCommandBufferKHR call on a user event
    
    * Changed cl_event to clEventWrapper
    kamil-goras-mobica authored Apr 19, 2024
    Configuration menu
    Copy the full SHA
    308fa6e View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2024

  1. Added negative tests for clEnqueueCommandBufferKHR (#1931)

    * Added negative tests for clEnqueueCommandBufferKHR
    
    * Added blocking the clEnqueueCommandBufferKHR call on a user event
    
    * Added finalizing buffer before enqueuing
    kamil-goras-mobica authored Apr 22, 2024
    Configuration menu
    Copy the full SHA
    4c085de View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2024

  1. compiler: fix memory leak (#1950)

    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>
    svenvh authored Apr 26, 2024
    Configuration menu
    Copy the full SHA
    46255db View commit details
    Browse the repository at this point in the history

Commits on May 7, 2024

  1. Configuration menu
    Copy the full SHA
    aa70c06 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. Added negative test commandNDRangeKernel (#1936)

    According to description
    #1668
    kamil-goras-mobica authored May 14, 2024
    Configuration menu
    Copy the full SHA
    5093ce5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e6fec74 View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

  1. Corrections for printf test with floating point limits arguments (#1940)

    According to work plan from issue #1058
    shajder authored May 21, 2024
    Configuration menu
    Copy the full SHA
    88a707d View commit details
    Browse the repository at this point in the history
  2. Negative tests for commandCopyImage[ToBuffer]KHR (#1943)

    According to description
    #1668
    kamil-goras-mobica authored May 21, 2024
    Configuration menu
    Copy the full SHA
    9500c30 View commit details
    Browse the repository at this point in the history
  3. Add negative test for test_svm size check (#1802)

    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
    niranjanjoshi121 authored May 21, 2024
    Configuration menu
    Copy the full SHA
    0353c0b View commit details
    Browse the repository at this point in the history
  4. Raw10/12 CTS tests (#1830)

    Add support for cl_ext_image_raw10_raw12 testing
    on test_image_streams.
    
    Signed-off-by: John Kesapides <john.kesapides@arm.com>
    JohnKesapidesARM authored May 21, 2024
    Configuration menu
    Copy the full SHA
    fb39357 View commit details
    Browse the repository at this point in the history
  5. Add acquire/release (#1899)

    Add acquire/release commands where appropriate. This is related to 1886.
    joshqti authored May 21, 2024
    Configuration menu
    Copy the full SHA
    4fceb78 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b377b85 View commit details
    Browse the repository at this point in the history
  7. basic: workaround MSVC compiler bug with post-increment operator (#1939)

    Prevent the compiler from optimizing away initialization loops
    lakshmih authored May 21, 2024
    Configuration menu
    Copy the full SHA
    5ce18c3 View commit details
    Browse the repository at this point in the history
  8. Add cl_khr_kernel_clock tests (#1960)

    Adds cl_khr_kernel_clock test.
    
    Also fixes failure in the compiler defines for extension compiler
    subtest when cl_khr_kernel_clock is supported.
    AhmedAmraniAkdi authored May 21, 2024
    Configuration menu
    Copy the full SHA
    cdf8d5e View commit details
    Browse the repository at this point in the history
  9. add missing header (#1966)

    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.
    rjodinchr authored May 21, 2024
    Configuration menu
    Copy the full SHA
    fe76832 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2024

  1. Negative tests clCommandSvmMem[cpy, Fill]KHR (#1956)

    According to description
    #1668
    kamil-goras-mobica authored May 22, 2024
    Configuration menu
    Copy the full SHA
    d3e3bda View commit details
    Browse the repository at this point in the history

Commits on May 28, 2024

  1. Configuration menu
    Copy the full SHA
    d53d7bc View commit details
    Browse the repository at this point in the history
  2. Vulkan interop coverage (#1887)

    Added Code changes for 1D, 1DList, 3D, 3DList and test cases.
    pkaur19 authored May 28, 2024
    Configuration menu
    Copy the full SHA
    1433ffe View commit details
    Browse the repository at this point in the history
  3. Import OpenCL exported semaphore in Vulkan (#1898)

    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.
    saurabhnv authored May 28, 2024
    Configuration menu
    Copy the full SHA
    6807e16 View commit details
    Browse the repository at this point in the history

Commits on May 29, 2024

  1. mem_host_flags: check returned pointer for NULL (#1924)

    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>
    svenvh authored May 29, 2024
    Configuration menu
    Copy the full SHA
    1d3ad8d View commit details
    Browse the repository at this point in the history
  2. cl_khr_kernel_clock: fix builtin function names (#1968)

    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>
    svenvh authored May 29, 2024
    Configuration menu
    Copy the full SHA
    75be6a3 View commit details
    Browse the repository at this point in the history

Commits on May 30, 2024

  1. Escape subnormal values (#1953)

    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.
    shiltian authored May 30, 2024
    Configuration menu
    Copy the full SHA
    556025b View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2024

  1. relationals: fix out of bounds accesses in shuffle test (#1961)

    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>
    svenvh authored Jun 4, 2024
    Configuration menu
    Copy the full SHA
    a130f3d View commit details
    Browse the repository at this point in the history
  2. Added new query for cl_khr_semaphore test to verify device handle list (

    #1942)
    
    This PR addresses the first part of #1691 issue and #1875 issue.
    shajder authored Jun 4, 2024
    Configuration menu
    Copy the full SHA
    806dd2f View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2024

  1. Added negative tests for clCommandCopy[Buffer, BufferRect, BufferToIm…

    …age]KHR (#1941)
    
    According to description
    #1668
    kamil-goras-mobica authored Jun 11, 2024
    Configuration menu
    Copy the full SHA
    d379b58 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2024

  1. Extended printf test with new strings cases (#1951)

    According to work plan from issue #1058
    
    Corrections to general test:
    -removed duplication of separate tests for each element of
    `PrintfTestType` vector, instead `doTest` procedure would iterate over
    vector related to specific `PrintfTestType` automaticaly
    -fixed procedure to assemble kernel source so it can accept only one
    parameter of the function ( eg. `printf("%%");` )
    -incorporated important modifications from #1940 to avoid expected
    conflicts
    -warnings fixes, minor corrections, clang format
    
    Extension for string testing:
    -special symbols
    -nested symbols
    -all ascii characters 
    -added new type of test `TYPE_FORMAT_STRING` to verify format string
    only (according to request from the issue)
    shajder authored Jun 18, 2024
    Configuration menu
    Copy the full SHA
    582fea5 View commit details
    Browse the repository at this point in the history
  2. gl: enable cl_khr_fp16 for image write tests (#1974)

    Co-authored-by: riteshv <riteshv@qti.qualcomm.com>
    lakshmih and riteshv authored Jun 18, 2024
    Configuration menu
    Copy the full SHA
    c8f91c5 View commit details
    Browse the repository at this point in the history
  3. Fixes for Image_from_buffer_alignment_negative when alignments are 1 (#…

    …1971)
    
    The Image_from_buffer_alignment_negative test creates images with
    incorrect pitches by adding 1 and tests whether the image creation
    fails.
    
    Devices that return 1 for either of
    CL_IMAGE_REQUIREMENTS_ROW_PITCH_ALIGNMENT_EXT,
    CL_IMAGE_REQUIREMENTS_SLICE_PITCH_ALIGNMENT_EXT or
    CL_IMAGE_REQUIREMENTS_BASE_ADDRESS_ALIGNMENT_EXT will successfully
    create the image and therefore fail the test.
    
    This change allows to skip the image creation in this case as the error
    condition (pitch % pitch_alignment != 0) will not be triggered for these
    devices.
    AhmedAmraniAkdi authored Jun 18, 2024
    Configuration menu
    Copy the full SHA
    b3c89eb View commit details
    Browse the repository at this point in the history
  4. Add fp16 testing to conversions and bruteforce (#1975)

    Merge the `fp16-staging` branch into `main`, adding fp16 (`half`)
    testing to the conversions and math bruteforce tests.
    
    ---------
    
    Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    Signed-off-by: Guo, Yilong <yilong.guo@intel.com>
    Signed-off-by: John Kesapides <john.kesapides@arm.com>
    Co-authored-by: Marcin Hajder <marcin.hajder@gmail.com>
    Co-authored-by: Ewan Crawford <ewan@codeplay.com>
    Co-authored-by: Wawiorko, Grzegorz <grzegorz.wawiorko@intel.com>
    Co-authored-by: Sreelakshmi Haridas Maruthur <sharidas@quicinc.com>
    Co-authored-by: Harald van Dijk <harald@gigawatt.nl>
    Co-authored-by: Ben Ashbaugh <ben.ashbaugh@intel.com>
    Co-authored-by: Haonan Yang <haonan.yang@intel.com>
    Co-authored-by: Ahmed Hesham <117350656+ahesham-arm@users.noreply.github.com>
    Co-authored-by: niranjanjoshi121 <43807392+niranjanjoshi121@users.noreply.github.com>
    Co-authored-by: Wenwan Xing <wenwan.xing@intel.com>
    Co-authored-by: Yilong Guo <yilong.guo@intel.com>
    Co-authored-by: Romaric Jodin <89833130+rjodinchr@users.noreply.github.com>
    Co-authored-by: joshqti <127994991+joshqti@users.noreply.github.com>
    Co-authored-by: Pekka Jääskeläinen <pekka.jaaskelainen@tuni.fi>
    Co-authored-by: imilenkovic00 <155085410+imilenkovic00@users.noreply.github.com>
    Co-authored-by: John Kesapides <46718829+JohnKesapidesARM@users.noreply.github.com>
    Co-authored-by: Aharon Abramson <aharon.abramson@mobileye.com>
    18 people authored Jun 18, 2024
    Configuration menu
    Copy the full SHA
    b6941b6 View commit details
    Browse the repository at this point in the history
  5. cl_khr_kernel_clock: use create_single_kernel_helper (#1978)

    `create_single_kernel_helper` invokes `clBuildProgram` and sets
    `-cl-std` to the latest version supported by the context.
    
    The vast majority of tests are using `create_single_kernel_helper`
    instead of the `..._create_program` variant, so use the former for the
    sake of consistency.
    
    ---------
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Jun 18, 2024
    Configuration menu
    Copy the full SHA
    2b26643 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2024

  1. Negative test for CL_INVALID_QUEUE_PROPERTIES (#1935)

    Test that verifies `CL_INVALID_QUEUE_PROPERTIES` is returned from
    `clCreateCommandQueue`, `clCreateCommandQueueWithProperties`, and
    `clCreateCommandQueueWithPropertiesKHR` to match spec wording
    
    > CL_INVALID_QUEUE_PROPERTIES if values specified in properties are
    valid but are not supported by the device.
    EwanC authored Jun 25, 2024
    Configuration menu
    Copy the full SHA
    8e6c519 View commit details
    Browse the repository at this point in the history
  2. Add special test for generic address space atomics (#1959)

    The atomic operations are tested with generic pointers but in a way
    where the compiler can infer the original pointer address space. This
    commit adds tests specifically for the case where the compiler cannot
    make inferences.
    Test that the correct address is used with atomics when the address is
    group variant and invariant.
    silverclaw authored Jun 25, 2024
    Configuration menu
    Copy the full SHA
    e2c7e90 View commit details
    Browse the repository at this point in the history
  3. Disable implicit conversion of copysign arguments. (#1970)

    In binary_float.cpp, copysign is special cased. All the reference
    functions there take double arguments, except for reference_copysign
    which takes float. This commit copies that approach to special case
    copysign in binary_double.cpp as well: all the reference functions there
    take long double arguments, but this commit changes reference_copysignl
    to take double. The rationale for this in binary_float applies equally
    to binary_double: conversions of NAN are not required to preserve its
    sign bit. On architectures where conversion of NAN resets the sign bit,
    copysign fp64 would return incorrect reference results.
    hvdijk authored Jun 25, 2024
    Configuration menu
    Copy the full SHA
    80a02cb View commit details
    Browse the repository at this point in the history
  4. Bump clang-format version to 14 (#1983)

    Default version coming with Ubuntu 22.04 that the CI now uses.
    kpet authored Jun 25, 2024
    Configuration menu
    Copy the full SHA
    a281046 View commit details
    Browse the repository at this point in the history
  5. Fixed incorrect usage of clGetDeviceIDs num_devices (#1952)

    clGetDeviceIDs 'num_devices' output parameter is described as:
    > num_devices returns the number of OpenCL devices available that match
    device_type.
    
    but the _test_events
    out_of_order_event_waitlist_multi_queue_multi_device_ test expects that
    after calling:
    `clGetDeviceIDs(platform, CL_DEVICE_TYPE_ALL, 2, two_device_ids,
    &number_returned);`
    
    the content of number_returned needs to be 2, but it should be valid to
    return a larger number.
    
    ---------
    
    Co-authored-by: Ben Ashbaugh <ben.ashbaugh@intel.com>
    paulfradgley and bashbaug authored Jun 25, 2024
    Configuration menu
    Copy the full SHA
    ac69311 View commit details
    Browse the repository at this point in the history
  6. spirv_new: fix test_decorate. (#1980)

    test_decorate was checking for half-precision NAN incorrectly, calling
    cl_half_from_float where cl_half_to_float was intended, causing a wrong
    expected result.
    
    test_decorate was also printing the expected and actual results
    reversed, printing "got -1, want 0", when our implementation already
    returned 0.
    hvdijk authored Jun 25, 2024
    Configuration menu
    Copy the full SHA
    c7b682f View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2024

  1. [NFC] math_brute_force: drop unneeded gotos (#1843)

    Simplify code by returning directly instead of using goto statements.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Jun 27, 2024
    Configuration menu
    Copy the full SHA
    fcbccab View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2024

  1. Added new cl_khr_semaphore tests to verify clEnqueueWaitSemaphoresKHR…

    … negative results (#1965)
    
    According to work plan from
    #1691
    
    After consultations with @bashbaug I skipped this case:
    
    `CL_INVALID_VALUE if any of the semaphore objects specified by
    sema_objects requires a semaphore payload and sema_payload_list is NULL`
    shajder authored Jul 2, 2024
    Configuration menu
    Copy the full SHA
    340b7c9 View commit details
    Browse the repository at this point in the history
  2. spirv_new: fix test_decorate to use the device's default rounding (#1987

    )
    
    The verification code assumes the hardware uses CL_HALF_RTE, which
    causes a mismatch computation results when the hardware uses RTZ. Fix to
    use the hardware's default rounding mode.
    cycheng authored Jul 2, 2024
    Configuration menu
    Copy the full SHA
    1cd0266 View commit details
    Browse the repository at this point in the history
  3. Extend printf tests with more %% corner cases (#1986)

    We've had a couple of bugs inside mesa/rusticl processing %% correctly.
    I've added those cases locally to make sure all corner cases are
    properly handled.
    karolherbst authored Jul 2, 2024
    Configuration menu
    Copy the full SHA
    89923f8 View commit details
    Browse the repository at this point in the history
  4. fix bugs in negative command_buffer tests (#1969)

    - when calling command buffer APIs, test with `command_queue != NULL`
    should return `CL_INVALID_VALUE` only if the device doesn't support
    `cl_khr_command_buffer_multi_device` (added `Skip`)
    
    - some tests enqueued commands with multiple invalid arguments, e.g.
    `clCommandCopyImageToBufferKHR` with two images and invalid sync points.
    AFAIK the order of argument checking is not defined, so implementation
    can return any valid error value for such API calls, but the tests
    assumed only one particular error would be returned. Fix the API calls
    to be unambiguous.
    franz authored Jul 2, 2024
    Configuration menu
    Copy the full SHA
    769984b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    02471c8 View commit details
    Browse the repository at this point in the history
  6. Fix typo for log. (#1995)

    This aligns with unary_float.cpp.
    haonanya1 authored Jul 2, 2024
    Configuration menu
    Copy the full SHA
    07ddc66 View commit details
    Browse the repository at this point in the history
  7. math_brute_force: update README.txt for half testing (#1985)

    Half precision math functions are fully tested as of #1975.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Jul 2, 2024
    Configuration menu
    Copy the full SHA
    269e818 View commit details
    Browse the repository at this point in the history
  8. [NFC] api: remove duplicate and unused macros (#1949)

    The removed macros were never used.
    
    Use the more common `ARRAY_SIZE` macro instead of defining an identical
    `NELEMS` macro.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Jul 2, 2024
    Configuration menu
    Copy the full SHA
    2d80286 View commit details
    Browse the repository at this point in the history
  9. image_streams: fix -Wformat warnings (#1948)

    The main sources of warnings were:
    
     * Printing of a `size_t` which requires the `%zu` specifier.
    
    * Printing of 64-bit values which is now done using the `PRI*64` macros
    to ensure portability across 32 and 64-bit builds.
    
    * Calling log_error with a format string of `"%f %f %f %f"` but
    specifying only three arguments.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Jul 2, 2024
    Configuration menu
    Copy the full SHA
    f775377 View commit details
    Browse the repository at this point in the history
  10. add testing for OpExpectKHR with boolean sources (#1904)

    Adds a missing test case for OpExpectKHR with boolean sources.
    bashbaug authored Jul 2, 2024
    Configuration menu
    Copy the full SHA
    38ae617 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    6b4d57d View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2024

  1. computeinfo: fix memory leak (#2002)

    Even on the common code path (i.e., no error paths taken),
    test_computeinfo failed to release its allocated memory, preventing a
    clean run with LeakSanitizer.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Jul 8, 2024
    Configuration menu
    Copy the full SHA
    89cd966 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. Added new tests to verify negative results of clGetSemaphoreInfoKHR (#…

    …1981)
    
    According to work plan from issue #1691
    shajder authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    c1af7c3 View commit details
    Browse the repository at this point in the history
  2. Extended printf test with new mixed format cases (#1988)

    According to work plan from issue #1058
    
    Added new case `TYPE_MIXED_FORMAT_RANDOM` which focus on three factors:
    
    -data before conversion flags - this is randomly generated ascii string
    -randomly generated conversion flags - integer or floating point, for
    each flag specific argument is generated
    -data after conversion flags - this is randomly generated ascii string
    
    Moreover, due to fact in case of `TYPE_MIXED_FORMAT_RANDOM` test is
    generated on the fly, logging of negative result was extended.
    shajder authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    8cd2b7d View commit details
    Browse the repository at this point in the history
  3. Deduplicate test_basic image_array_copy (#1538)

    Merge image_array_copy, image_array_copy3d
    as they share a lot of common code.
    
    Signed-off-by: John Kesapides <john.kesapides@arm.com>
    
    Signed-off-by: John Kesapides <john.kesapides@arm.com>
    JohnKesapidesARM authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    cb9b8db View commit details
    Browse the repository at this point in the history
  4. Use CTS type wrappers for test_basic test_if. (#1540)

    Signed-off-by: John Kesapides
    [john.kesapides@arm.com](mailto:john.kesapides@arm.com)
    JohnKesapidesARM authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    cabdf6a View commit details
    Browse the repository at this point in the history
  5. Deduplicate test_imagedim (#1546)

    Signed-off-by: John Kesapides <john.kesapides@arm.com>
    
    Signed-off-by: John Kesapides <john.kesapides@arm.com>
    JohnKesapidesARM authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    dd029ca View commit details
    Browse the repository at this point in the history
  6. Drop linking Vulkan directly (#2000)

    The `vulkan-wrapper` helper library's purpose is to eliminate the need
    to link targets directly to Vulkan, and load it dynamically instead at
    runtime, using `dlopen` and `LoadLibrary`.
    
    Remove the direct linking of the Vulkan library from targets that link
    to `vulkan-wrapper`.
    
    Fixes #1999
    
    Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
    ahesham-arm authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    47546a5 View commit details
    Browse the repository at this point in the history
  7. Use the --parallel build option in CI workflows (#2004)

    Instead of selecting an arbitrary number for the number of parallel
    build jobs, use CMake's `--parallel` option instead.
    
    Option was introduced in version 3.12, GitHub runners currently use
    CMake version 3.29.6 so this is supported.
    
    Fixes #2003
    
    Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
    ahesham-arm authored Jul 9, 2024
    Configuration menu
    Copy the full SHA
    1858922 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2024

  1. [NFC] math_brute_force: reformat function list manually (#2008)

    clang-format has already been disabled here. Make the function list a
    bit easier to read. Make the currently commented out functions stand out
    better on a line of their own.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Jul 11, 2024
    Configuration menu
    Copy the full SHA
    6d60301 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2024

  1. printf: add missing cstdint include (#2011)

    Since GCC 13 some headers are no longer included transitively through
    C++ Standard Library headers.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    881560a View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2024

  1. Added new cl_khr_semaphore tests to verify clReleaseSemaphoreKHR/clRe…

    …tainSemaphoreKHR negative results (#1976)
    
    According to work plan from issue #1691
    
    Co-authored-by: Ben Ashbaugh <ben.ashbaugh@intel.com>
    shajder and bashbaug authored Jul 16, 2024
    Configuration menu
    Copy the full SHA
    7b0f4ee View commit details
    Browse the repository at this point in the history
  2. computeinfo: add CL_DEVICE_HALF_FP_CONFIG (#2001)

    The computeinfo test already checks that the cl_khr_fp16 extension is
    available before querying `CL_DEVICE_HALF_FP_CONFIG`, but never actually
    made the `CL_DEVICE_HALF_FP_CONFIG` query.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Jul 16, 2024
    Configuration menu
    Copy the full SHA
    8558eb8 View commit details
    Browse the repository at this point in the history
  3. math_brute_force: remove spurious tan skip check (#1992)

    The `skipTestingRelaxed` check suffers the following problems:
    
    - The use of `skipTestingRelaxed` in the `if` seems reversed: when
    skipping correctness testing using the `-l` command line option, this
    variable causes correctness testing to be run for relaxed-mode `tan`
    regardless.
    
    - Accuracy testing should only be skipped for derived `tan`
    implementations. Non-derived `tan` implementations must still be tested
    for accuracy, so the condition for setting the `skipTestingRelaxed`
    variable is incomplete.
    
    - It is unclear why only `tan` is conditionalized here. There are other
    functions such as `tanpi` for which one would expect identical
    behaviour.
    
    The actual skipping of accuracy checks for derived implementations
    happens in `Test()`, so just remove `skipTestingRelaxed` as it does not
    seem to add any value.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Jul 16, 2024
    Configuration menu
    Copy the full SHA
    39fa6e6 View commit details
    Browse the repository at this point in the history
  4. Use sccache on all CI platforms (#2014)

    MSVC on Windows was previously omitted from the list of CI platforms
    that use sccache. Unify the CMAKE_CACHE_OPTIONS used for all CI
    platforms.
    
    In the case of a 100% cache hit, this cuts down the average checks time
    from 8 minutes to 4 minutes, example:
    https://github.com/ahesham-arm/OpenCL-CTS/actions/runs/9896449792
    ahesham-arm authored Jul 16, 2024
    Configuration menu
    Copy the full SHA
    070052c View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2024

  1. Configuration menu
    Copy the full SHA
    5b5e43e View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2024

  1. Configuration menu
    Copy the full SHA
    0be82dc View commit details
    Browse the repository at this point in the history
  2. [NFC] Remove config.hpp (#2020)

    The defines inside this header were not used anywhere.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Jul 23, 2024
    Configuration menu
    Copy the full SHA
    7088415 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2024

  1. Remove outdated readme-spir-v-binaries.txt (#2026)

    Completely outdated. Confuses people.
    
    Signed-off-by: Kevin Petit <kevin.petit@arm.com>
    kpet authored Jul 29, 2024
    Configuration menu
    Copy the full SHA
    284f757 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2024

  1. Extended printf test to support more vector cases (#2019)

    according to work plan for issue
    #1058
    shajder authored Aug 6, 2024
    Configuration menu
    Copy the full SHA
    19cb042 View commit details
    Browse the repository at this point in the history
  2. Added new tests for CL_MUTABLE_DISPATCH_ASSERT_NO_ADDITIONAL_WORK_GRO…

    …UPS_KHR flag with mutable dispatch (#1991)
    
    Added new tests for
    CL_MUTABLE_DISPATCH_ASSERT_NO_ADDITIONAL_WORK_GROUPS_KHR with mutable
    dispatch according to this test plan
    #1897
    
    Co-authored-by: Banan Ashkar <banan.ashkar@mobileye.com>
    banan328 and bananAshkar authored Aug 6, 2024
    Configuration menu
    Copy the full SHA
    89a720d View commit details
    Browse the repository at this point in the history
  3. conversions: fix ZeroNanToIntCases from #1975 (#2030)

    The handling of NaN values in the templated function was incorrect due
    to improper initialization of the input data source. Specifically, the
    function ZeroNanToIntCases used a global pointer gIn, which was not
    correctly set or did not point to the same data as the local input
    pointer s used in the non-templated implementation.
    
    to solve the issue I updated the templated function ZeroNanToIntCases to
    take an additional parameter for the input data source.
    and then passed the correct input data (s) to the templated function
    during its invocation.
    
    Co-authored-by: Banan Ashkar <banan.ashkar@mobileye.com>
    banan328 and bananAshkar authored Aug 6, 2024
    Configuration menu
    Copy the full SHA
    8974d74 View commit details
    Browse the repository at this point in the history
  4. math_brute_force: skip all enqueues in -l mode (#1993)

    The math_brute_force test has a link-check-only mode to quickly test if
    all math functions are present.
    
    In link-check-only mode, most tests return immediately after kernel
    compilation, but some tests also run the kernel and read back the result
    data before returning. Running the kernels takes a lot more time,
    defeating the purpose of the `-l` mode.
    
    Break out at the start of the main `for` loops in link-check-only mode
    instead of returning directly, so that each test can still log its
    trailing message (in most cases just a `\n`).
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Aug 6, 2024
    Configuration menu
    Copy the full SHA
    5be093e View commit details
    Browse the repository at this point in the history
  5. Unduplicate kernel_read_write image tests (read) (#1552)

    The kernel_read_write tests have a lot of duplicate code. These are the
    next steps to reducing the duplication, by using the functions in
    test_common.cpp as common for 1D, 1D array and 2D array.
    
    ---------
    
    Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com>
    Co-authored-by: Ahmed Hesham <117350656+ahesham-arm@users.noreply.github.com>
    ellnor01 and ahesham-arm authored Aug 6, 2024
    Configuration menu
    Copy the full SHA
    1384862 View commit details
    Browse the repository at this point in the history
  6. math_brute_force: only test correctly rounded divide/sqrt for fp32 (#…

    …1997)
    
    Skip the correctly rounded divide (divide_cr) and sqrt (sqrt_cr) tests
    for fp16 and fp64.
    
    The corresponding build option to enable correctly rounded divide and
    sqrt is named `-cl-fp32-correctly-rounded-divide-sqrt` and the
    description refers only to "single precision floating-point", so this
    option should not apply to fp16 or fp64.
    
    The specification states that fp16 and fp64 divide and sqrt must be
    correctly rounded for the full profile, without needing any additional
    build options. This is already tested by the regular divide and sqrt
    tests. For the embedded profile the ULP requirement is non-zero, but
    there is no build option to request a correctly rounded implementation
    anyway.
    
    Fixes #1901 .
    Relates to #1996 .
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Aug 6, 2024
    Configuration menu
    Copy the full SHA
    1a9d418 View commit details
    Browse the repository at this point in the history
  7. Add clSetCommandQueueProperty test (#1182)

    Add test to check that clSetCommandQueueProperty
    successfully changes command queue properties.
    
    Fixes #904
    
    Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com>
    
    Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com>
    ellnor01 authored Aug 6, 2024
    Configuration menu
    Copy the full SHA
    995e465 View commit details
    Browse the repository at this point in the history
  8. Limit buffers sizes to leave some memory for the platform (#1172)

    Some conformance tests use directly the size returned by the runtime
    for max memory size to allocate buffers.
    This doesn't leave enough memory for the system to run the tests.
    ouakheli authored Aug 6, 2024
    Configuration menu
    Copy the full SHA
    f473546 View commit details
    Browse the repository at this point in the history
  9. Fix issues in test_external_semaphores_cross_queues_io2 (#2036)

    1. Fix memory leak by making `context2` use the context wrapper.
    2. Create two separate events to associate with the two calls to
    `clEnqueueSignalSemaphoresKHR()`, as events cannot be reused.
    
    Also delete the unused helper function
    `semaphore_external_cross_queue_helper()` (which was a duplicate of
    `external_semaphore_cross_queue_helper()` anyway).
    gorazd-sumkovski-arm authored Aug 6, 2024
    Configuration menu
    Copy the full SHA
    3c81548 View commit details
    Browse the repository at this point in the history
  10. Added new cl_khr_semaphore tests to verify clCreateSemaphoreWithPrope…

    …rtiesKHR negative results (#1962)
    
    According to work plan from #1691, new clSemaphoreWrapper introduced to
    avoid duplication of code
    shajder authored Aug 6, 2024
    Configuration menu
    Copy the full SHA
    d1434ae View commit details
    Browse the repository at this point in the history
  11. Fix error return and TEST_PASS for negative SVM tests (#2027)

    Fix error return and TEST_PASS for negative SVM tests
    Fix review comments from #1802 
    
    Fixes #1964
    niranjanjoshi121 authored Aug 6, 2024
    Configuration menu
    Copy the full SHA
    a406b34 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2024

  1. math_brute_force: stop relying on volatile for IsTininessDetectedBefo…

    …reRounding (#2038)
    
    This makes it literally impossible for drivers to constant fold the
    IsTininessDetectedBeforeRounding kernel. Sure, drivers might have should
    respect volatile here, but I'm not convinced this is actually required
    by the spec in a very strict sense, because here there are no
    side-effects possible in the first place.
    
    And as far as I know, constant folding is allowed to give different
    results than an actual GPU calculation would.
    
    In any case, passing the constants via kernel arguments makes this
    detection more reliable and one doesn't have to wonder why the fma test
    is failing.
    
    Side note: this was the last bug (known as of today) I had to fix in
    order being able to make a CL CTS submission for Apple Silicon devices.
    karolherbst authored Aug 13, 2024
    Configuration menu
    Copy the full SHA
    21ee05e View commit details
    Browse the repository at this point in the history
  2. Added few missing format cases for zero and blank space padding (#2016)

    according to work plan for issue #1058
    shajder authored Aug 13, 2024
    Configuration menu
    Copy the full SHA
    aa49f3b View commit details
    Browse the repository at this point in the history
  3. Fixes for basic explicit_s2v and commonfns degrees for cl_half (#2024)

    Basic explicit_s2v:
    
    The verification step was always using round to even when converting a
    float to half even for round to zero cores.
    
    Commonfns degrees:
    
    The verification step was only taking into account infinities and not
    values that over/underflow. This resulted in an incorrect error
    calculation. E.g:
    
    double cpu_result = 175668.85998711039;
    cl_half gpu_result = 31743; // this is 65504 when converting to float,
    we overflowed.
    float error = (cpu_result - gpu_result) * some_factor;
    
    The fix adds the check if( (cl_half) reference == test ) before
    calculating the error.
    AhmedAmraniAkdi authored Aug 13, 2024
    Configuration menu
    Copy the full SHA
    b4c3bf2 View commit details
    Browse the repository at this point in the history
  4. [basic] Enable image format aware scanline comparison. (#2042)

    Use format aware memory comparison instead of memcmp.
    joshqti authored Aug 13, 2024
    Configuration menu
    Copy the full SHA
    b8981f5 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2024

  1. Configuration menu
    Copy the full SHA
    746544a View commit details
    Browse the repository at this point in the history
  2. Added two tests not calling event calback upon error status (#2028)

    #1900 
    Tested on POCL, callback is not called.
    kamil-goras-mobica authored Aug 20, 2024
    Configuration menu
    Copy the full SHA
    6cbe8ca View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2024

  1. Added printf test for double type cases (#2022)

    according to work plan for issue
    #1058
    shajder authored Aug 27, 2024
    Configuration menu
    Copy the full SHA
    0a00a1f View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2024

  1. printf: add missing vector length modifiers (#2044)

    The length modifier is required with a vector specifier.
    
    Fixes #2039
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Aug 29, 2024
    Configuration menu
    Copy the full SHA
    c0db608 View commit details
    Browse the repository at this point in the history
  2. [NFC] Use std::vector to store large size array. (#2060)

    windows default stack size is 1M, BUFFER_SIZE is 2 * 1024 * 1024, use
    array with BUFFER_SIZE elemets on stack can exceed available stack size
    limits.
    haonanya1 authored Aug 29, 2024
    Configuration menu
    Copy the full SHA
    a716218 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2024

  1. api: fix -Wformat warnings (#2025)

    The main sources of warnings were:
    
     * Printing of a `size_t` which requires the `%zu` specifier.
    
     * Printing of `cl_long`/`cl_ulong` which is now done using the `PRI*64`
    macros to ensure portability across 32 and 64-bit builds.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Sep 2, 2024
    Configuration menu
    Copy the full SHA
    90f523e View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2024

  1. Fix external semaphore test when exportability is not supported (#2045)

    An implementation may not support exportable semaphore, subtests
    available in cl_khr_external_semaphore assumes support for exportable
    semaphore, resulting in failure on such implementation. Allow
    implementations to use importable semaphore in such cases.
    saurabhnv authored Sep 3, 2024
    Configuration menu
    Copy the full SHA
    7131f87 View commit details
    Browse the repository at this point in the history
  2. Modernization of tests from test_semaphores.cpp to align with new Sem…

    …aphoreTestBase infrastructure (#2029)
    shajder authored Sep 3, 2024
    Configuration menu
    Copy the full SHA
    eb7a30a View commit details
    Browse the repository at this point in the history
  3. [NFC] math_brute_force: move TestInfoBase to common.h (#2059)

    The various forms of `TestInfoBase` have many members in common, so
    avoid duplicating the struct definition and move it to `common.h`.
    
    Provide a description and initializer for every struct member, and drop
    initializations done with `memset`.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Sep 3, 2024
    Configuration menu
    Copy the full SHA
    9116bb7 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2024

  1. Fix Windows build with MSVC 19.41 (#2065)

    Include `cmath` instead of `math.h` in C++ mode under MSVC, to avoid
    build errors inside the header.  Ideally we would not condition this
    on `_MSC_VER`, but issue 1833 currently prevents doing so.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Sep 6, 2024
    Configuration menu
    Copy the full SHA
    ce68069 View commit details
    Browse the repository at this point in the history
  2. Array based clUpdateMutableCommandsKHR changes (#1984)

    CTS changes to reflect the spec changes merged in
    KhronosGroup/OpenCL-Docs#1045 and requires
    header updates from
    KhronosGroup/OpenCL-Headers#245
    
    Tested using OCK implementation from
    uxlfoundation/oneapi-construction-kit#501
    EwanC authored Sep 6, 2024
    Configuration menu
    Copy the full SHA
    0bdc5d0 View commit details
    Browse the repository at this point in the history
  3. Add properties parameter to all command-buffer commands (update) (#2072)

    This is an update to #2050, with updates from the main branch.
    
    ---------
    
    Co-authored-by: Ewan Crawford <ewan@codeplay.com>
    bashbaug and EwanC authored Sep 6, 2024
    Configuration menu
    Copy the full SHA
    b57f90e View commit details
    Browse the repository at this point in the history
  4. cl_khr_mutable_dispatch: fix -Wformat warnings (#2071)

    Printing of a `size_t` requires the `%zu` specifier.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Sep 6, 2024
    Configuration menu
    Copy the full SHA
    c32a767 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2024

  1. Extend IGetErrorString() (#2080)

    Add cases for `CL_INCOMPATIBLE_COMMAND_QUEUE_KHR`,
    `CL_INVALID_COMMAND_BUFFER_KHR` and
    `CL_INVALID_SYNC_POINT_WAIT_LIST_KHR`.
    
    Signed-off-by: Gorazd Sumkovski <gorazd.sumkovski@arm.com>
    gorazd-sumkovski-arm authored Sep 12, 2024
    Configuration menu
    Copy the full SHA
    21b0a09 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2024

  1. compile Vulkan SPIR-V shaders in CMAKE_CURRENT_BINARY_DIR (#2055)

    fixes #2040 
    
    * Compiles the Vulkan SPIR-V files in a directory based off of
    CMAKE_CURRENT_BINARY_DIR.
    * Changes the search path for the Vulkan SPIR-V files to this directory
    rather than a semi-arbitrary set of directories.
    bashbaug authored Sep 16, 2024
    Configuration menu
    Copy the full SHA
    a395174 View commit details
    Browse the repository at this point in the history
  2. Extend testing of CL_UNORM_INT_101010_2 (#2031)

    All existing tests in `test_image_streams`, that are capable of testing
    image formats using the `CL_UNORM_INT_101010_2` data type, now do so.
    gorazd-sumkovski-arm authored Sep 16, 2024
    Configuration menu
    Copy the full SHA
    bcfd8f8 View commit details
    Browse the repository at this point in the history
  3. Update test_event_dependencies.cpp (#2049)

    In test_event_enqueue_wait_for_events_run_test:
    * Decrease TEST_COUNT to 10
    * Add clFinish to queues
    aharon-abramson authored Sep 16, 2024
    Configuration menu
    Copy the full SHA
    a773a37 View commit details
    Browse the repository at this point in the history
  4. [NFC] math_brute_force: add type argument to getAllowedUlpError (#2017)

    Add a type argument so that in the future we can request the ULP
    requirement for fp16 and fp64 types through `getAllowedUlpError` too.
    
    Contributes to #867
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Sep 16, 2024
    Configuration menu
    Copy the full SHA
    c083a87 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2024

  1. fix a few array-based mutable command buffer issues (#2074)

    fixes a few minor issues introduced by #1984.
    
    edit: Tested with the updated command buffer emulation layer on a device
    that supports out-of-order queues and SVM and all of the
    `test_cl_khr_mutable_dispatch` tests pass.
    bashbaug authored Sep 17, 2024
    Configuration menu
    Copy the full SHA
    dd2117f View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2024

  1. Specify precision in the format flag for float4 hexadecimal output (#…

    …2064)
    
    This will ensure consistent output on any conforming implementation.
    Note that the specification does not define the output style when
    precision is missing.
    
    ---------
    
    Signed-off-by: Cui, Dele <dele.cui@intel.com>
    delecui authored Sep 19, 2024
    Configuration menu
    Copy the full SHA
    9f88b0b View commit details
    Browse the repository at this point in the history
  2. [NFC] math_brute_force: remove warning options (#2061)

    All of these are already set in the top-level `CMakeLists.txt` nowadays,
    so no need to repeat them in the test's own `CMakeLists.txt`.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Sep 19, 2024
    Configuration menu
    Copy the full SHA
    97045f8 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2024

  1. Add flag to track wether glut has been initialized (#2023)

    glutInit double called in CTS CLGL test case code, which will lead
    to an error:
    
    freeglut (./test_gl): illegal glutInit() reinitialization attempt
    root cause is in: test_conformance/gl/main.cpp:343
    
                if (glEnv->Init(&argc, (char **)argv, CL_TRUE))
    the glEnv->Init has already called in same file line:260, the function
    glutInit in glEnv->Init can not be called twice, then a error will occur
    although all the gl / CLGL cases are passed. Then in the full quick CTS
    running it will appear:
    
    (12-Jul 03:54:01) BEGIN OpenCL-GL Sharing :
               PASSED sub-test.
               PASSED 23 of 23 tests.
    (12-Jul 04:01:48) FAILED OpenCL-GL Sharing : (467s, test 34/53)
    Although all the gl/CLGL cases are passed, but this group test is judged
    to failed.
    
    This issue already been found in
    #1885
    And fixed partly by:
    02471c8
    
    But I found in setup_osx.cpp, the glutInit still has double init issue,
    I add the same fix like previous fix,
    can you please help to review?
    
    Signed-off-by: Honglei Huang <Honglei1.Huang@amd.com>
    Co-authored-by: Honglei Huang <Honglei1.Huang@amd.com>
    energystoryhhl and Honglei Huang authored Sep 20, 2024
    Configuration menu
    Copy the full SHA
    2d077cf View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2024

  1. Added new tests to verify negative results of clEnqueueSignalSemaphor…

    …esKHR (#2006)
    
    According to work plan from issue
    #1691
    shajder authored Sep 24, 2024
    Configuration menu
    Copy the full SHA
    8c647c1 View commit details
    Browse the repository at this point in the history
  2. Added printf test for long type cases (#2037)

    according to work plan for issue
    #1058
    shajder authored Sep 24, 2024
    Configuration menu
    Copy the full SHA
    661a7b0 View commit details
    Browse the repository at this point in the history
  3. Skip testing mipmaps if extension is not available (#2085)

    './test_image_streams test_mipmaps CL_FILTER_NEAREST' already skips many
    tests, but doesn't do so for cl_ext_image_raw10_raw12, causing it to
    fail.
    
    Add a check similar to how it is done in the other tests already.
    
    On a device which doesn't support mipmap'd access:
    W/o fix
    ```
    ./test_image_streams test_mipmaps CL_FILTER_NEAREST
    ...
    1Darray passed
    2Darray...
    -----------------------------------------------------
    This device does not support cl_khr_mipmap_image.
    Skipping mipmapped image test. 
    -----------------------------------------------------
    
    -----------------------------------------------------
    This device does not support cl_khr_mipmap_image.
    Skipping mipmapped image test. 
    -----------------------------------------------------
    
    2Darray passed
    cl_image_requirements_size_ext_negative...
    ...
    image_from_buffer_read_positive passed
    cl_ext_image_raw10_raw12...
    ---- Supported 2D read formats for this device for cl_ext_image_raw10_raw12---- 
      CL_R    CL_UNSIGNED_INT_RAW10_EXT 0
      CL_R    CL_UNSIGNED_INT_RAW12_EXT 0
    ------------------------------------------- 
    read_image (normalized float coords, uint results) *****************************
    [CL_R    CL_UNSIGNED_INT_RAW10_EXT 1] - CL_FILTER_NEAREST - CL_ADDRESS_CLAMP_TO_EDGE - NORMALIZED
    ERROR: clBuildProgram failed! (CL_BUILD_PROGRAM_FAILURE from <>/OpenCL-CTS/test_common/harness/kernelHelpers.cpp:844)
    Build options:  -cl-std=CL3.0
    Original source is: ------------
    #pragma OPENCL EXTENSION cl_khr_mipmap_image: enable
    __kernel void sample_kernel( read_only image2d_t input, sampler_t imageSampler, __global float *xOffsets, __global float *yOffsets, __global uint4 *results , float lod)
    {
       int tidX = get_global_id(0), tidY = get_global_id(1);
       unsigned int lod_int = (unsigned int) lod;
       int width_lod = (get_image_width(input) >> lod_int) ?(get_image_width(input) >> lod_int):1 ;
       int offset = tidY*width_lod + tidX;
       float2 coords = (float2)( (float)( xOffsets[offset] ), (float)( yOffsets[offset] ) );
       results[offset] = read_imageui( input, imageSampler, coords , lod);
    }Build not successful for device <>, status: CL_BUILD_ERROR
    Build log for device <> is: ------------
    <source>:1:26: warning: unsupported OpenCL extension 'cl_khr_mipmap_image' - ignoring
    #pragma OPENCL EXTENSION cl_khr_mipmap_image: enable
                             ^
    
    <source>:9:22: error: no matching function for call to 'read_imageui'
       results[offset] = read_imageui( input, imageSampler, coords , lod);
                         ^~~~~~~~~~~~
    
    error: Compiler frontend failed (error code <unknown>)
    ```
    
    
    With fix:
    ```
    ./test_image_streams test_mipmaps CL_FILTER_NEAREST
    ....
    image_from_buffer_read_positive...
    image_from_buffer_read_positive passed
    cl_ext_image_raw10_raw12...
    ---- Supported 2D read formats for this device for cl_ext_image_raw10_raw12---- 
      CL_R    CL_UNSIGNED_INT_RAW10_EXT 0
      CL_R    CL_UNSIGNED_INT_RAW12_EXT 0
    ------------------------------------------- 
    -----------------------------------------------------
    This device does not support cl_khr_mipmap_image.
    Skipping mipmapped image test. 
    -----------------------------------------------------
    
    cl_ext_image_raw10_raw12 passed
    PASSED sub-test.
    PASSED 18 of 18 tests.
    ```
    JorWag authored Sep 24, 2024
    Configuration menu
    Copy the full SHA
    1cede6d View commit details
    Browse the repository at this point in the history
  4. Fix 1D buffer image tests (#2073)

    Buffer size needs to be greater than or equal the image row pitch which
    was not the case.
    ahesham-arm authored Sep 24, 2024
    Configuration menu
    Copy the full SHA
    0c7fbc4 View commit details
    Browse the repository at this point in the history
  5. Fix vulkan subtest for diffCtx and platform/device info (#2046)

    Fixes:
    1. Multi import diff ctx subtest which acquires/releases external memory
    via queue not associated with the context in which memory was imported.
    2. Platform/Device info subtests to handle different platforms and
    availability of the query.
    saurabhnv authored Sep 24, 2024
    Configuration menu
    Copy the full SHA
    e865c1e View commit details
    Browse the repository at this point in the history
  6. Use CTS type wrappers for test_global_linear_id. (#1545)

    Signed-off-by: John Kesapides <john.kesapides@arm.com>
    
    ---------
    
    Signed-off-by: John Kesapides <john.kesapides@arm.com>
    JohnKesapidesARM authored Sep 24, 2024
    Configuration menu
    Copy the full SHA
    cd74e02 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2024

  1. Correction for printing long type variables in 32-bit system (#2094)

    Due to change request from #2037
    shajder authored Oct 1, 2024
    Configuration menu
    Copy the full SHA
    0395a1e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bcd5478 View commit details
    Browse the repository at this point in the history
  3. Queue profiling and Device timebase equality test (#1150)

    Adds test to confirm that the timestamp returned from
    clGetEventProfilingInfo for an event on a device and a device
    timestamp queried from the same device are in the same timebase.
    
    Fixes #753
    
    Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com>
    
    ---------
    
    Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com>
    ellnor01 authored Oct 1, 2024
    Configuration menu
    Copy the full SHA
    7e859cc View commit details
    Browse the repository at this point in the history
  4. Math bruteforce test - enable erf/erfc functions (#1289)

    It was disabled because lack of reference implementation. However the
    reference implementation exists. Then no reason to start testing these
    functions.
    gwawiork authored Oct 1, 2024
    Configuration menu
    Copy the full SHA
    97cf4c7 View commit details
    Browse the repository at this point in the history
  5. fix generic_address_space, command_buffer_event_sync, test_compiler a…

    …nd images/test_1D_buffer (#2062)
    
    fixes several issues:
    
    * `generic_address_space` test: add check for program scope variables.
    The test uses both generic AS and program-scope variables, however it
    only checked the generic-AS presence in `clGetDeviceInfo`.
    * `compiler/test_compiler_defines_for_extensions.cpp`: add
    `cl_khr_command_buffer_multi_device` to the list of recognized
    extensions
    * `command_buffer_event_sync.cpp`: add delays for testing
    `clSetEventCallback` - according to specification, these can be executed
    asynchronously (in a separate thread) by the OpenCL implementation,
    hence the event callback is not quaranteed to be called before
    `clFinish()` returns. Existing test `events/test_callbacks.cpp` also
    waits for callback with loops of usleep.
    * `images/kernel_image_methods/test_1D_buffer.cpp`: fix allocation size
    being too small for the 1D buffer backing the image
    
    ---------
    
    Co-authored-by: Ben Ashbaugh <ben.ashbaugh@intel.com>
    franz and bashbaug authored Oct 1, 2024
    Configuration menu
    Copy the full SHA
    2be73b2 View commit details
    Browse the repository at this point in the history
  6. bruteforce: Fix comparions of unsigned shorts with 0.0f (#2095)

    Comparing test (of type cl_half) with 0.0f is incorrect because cl_half
    is a typedef of uint16_t (or unsigned short in c)
    
    Co-authored-by: Tejswini Nimburkar <tnimburk@qti.qualcomm.com>
    lakshmih and Tejswini Nimburkar authored Oct 1, 2024
    Configuration menu
    Copy the full SHA
    3a55025 View commit details
    Browse the repository at this point in the history
  7. vulkan: Use Vulkan 1.1 (#2076)

    Increase Vulkan version to 1.1, which is required to support
    vkGetBufferMemoryRequirements2.
    joshqti authored Oct 1, 2024
    Configuration menu
    Copy the full SHA
    7cadf60 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2024

  1. Fix printing in test_api_min_max (#2102)

    before: Filling constant buffer with 553805440 cl_ints (-2079745536
    bytes).
    after: Filling constant buffer with 553805440 cl_ints (2215221760
    bytes).
    jwarchul authored Oct 3, 2024
    Configuration menu
    Copy the full SHA
    9cf4394 View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2024

  1. Extended printf test to verify length sub-specifiers (#2083)

    According to work plan for issue #1058
    shajder authored Oct 8, 2024
    Configuration menu
    Copy the full SHA
    d339fd4 View commit details
    Browse the repository at this point in the history
  2. bruteforce: Fix retry logic for cases with subnormals (#2091)

    Replace the occurrences of 0.0f == test' with 0.0f == HTF(test)'. The
    types of 0.0f and test are not the same, so the equality comparison will
    get undesired result when the test represents a -0.0h (i.e., test is
    32768=0x8000). In this situation, 0.0f == test will be false, but 0.0f
    == HTF(test) will be true.
    
    Revise each if-statement to match the OpenCL s7.5.3 Item 4, specifically
    modify to check that the result is subnormal instead of checking that it
    is zero. "If the result of 3. is a sub-normal before rounding, the
    result may be flushed to zero"
    
    Co-authored-by: tnimburk <tnimburk@qti.qualcomm.com>
    lakshmih and tnimburk authored Oct 8, 2024
    Configuration menu
    Copy the full SHA
    7d86714 View commit details
    Browse the repository at this point in the history
  3. Re-enabling narrowing errors (#1144)

    Fixes narrowing conversion build errors in test_common
    
    Removing disable of narrowing errors in main CMakeLists.txt
    and moving it down to specific test_conformance suite's 
    CMakeLists.txt where there are many more build errors revealed
    from this fix. 
    
    Fixes a few simple issues under test_conformance in the process.
    
    Contributes #787
    
    Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com>
    
    ---------
    
    Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com>
    ellnor01 authored Oct 8, 2024
    Configuration menu
    Copy the full SHA
    617e7cb View commit details
    Browse the repository at this point in the history
  4. a few fixes (thread safety & cl_khr_command_buffer UB) (#1840)

    some fixes we've been carrying in our CTS fork:
    
    * fix UB in `command_buffer_event_sync.cpp`: enqueue of two commands in
    two separate queues, with both using the same buffer argument, and no
    synchronization between the commands.
    * fix UB in `command_buffer_test_barrier.cpp`: missing synchronization
    between zeroing command and command-buffer using two separate queues
    * make `test_thread_dimensions.cpp` thread-safe to avoid spurious
    errors.
    franz authored Oct 8, 2024
    Configuration menu
    Copy the full SHA
    c40c8d5 View commit details
    Browse the repository at this point in the history
  5. Add new extensions to conformance csv files (#2096)

    The extension tests in `test_conformance/extensions` have not matching
    entries in the `opencl_conformance_tests_*.csv` files. This means that
    they are missed from conformance runs by vendors who use these files.
    
    I've included the new extensions in the full and quick CSV files as they
    don't have vast combinations of tests to run like bruteforce or
    conversions.
    
    I've put `cl_khr_dx9_media_sharing` in the
    `test_conformance/opencl_conformance_tests_d3d.csv` CSV as like the
    other tests there the test binary is conditional built only on a Windows
    platform.
    
    I've created a new `opencl_conformance_tests_vulkan.csv ` file for
    testing the `cl_khr_external_semaphore` extension, as creation of the
    binary is conditional on the Vulkan SDK being enabled environment. Any
    other tests that require the Vulkan SDK in future can also be added
    there.
    EwanC authored Oct 8, 2024
    Configuration menu
    Copy the full SHA
    b64f429 View commit details
    Browse the repository at this point in the history
  6. Fix warning now treated as error (#2107)

    Following the re-enablement of narrowing warnings, this fixes a
    compilation error when running the `ubuntu 22.04 arm` GitHub action.
    
    Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
    ahesham-arm authored Oct 8, 2024
    Configuration menu
    Copy the full SHA
    1527c4e View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2024

  1. Added missing test cases for CL_SEMAPHORE_DEVICE_HANDLE_LIST_KHR quer…

    …ies (#2063)
    
    According to comments from issue #1875
    
    ---------
    
    Co-authored-by: Nikhil Joshi <nikhilj@nvidia.com>
    shajder and nikhiljnv authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    2998463 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9f54727 View commit details
    Browse the repository at this point in the history
  3. vulkan: Propagate fix to multiImport diffCtx (#2075)

    Vulkan descriptors are being programmed incorrectly, use fix from 1676
    in other subtest
    
    Co-authored-by: dcrawley <dcrawley@qti.qualcomm.com>
    joshqti and dcrawley authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    881635a View commit details
    Browse the repository at this point in the history
  4. vulkan: Choose where Shaders are generated (#2114)

    - generate shader files in VULKAN_TEST_RESOURCES directory
    - allows for outside CMakeLists to specify arbitrary destination
    
    Co-authored-by: dcrawley <dcrawley@qti.qualcomm.com>
    joshqti and dcrawley authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    115068e View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2024

  1. fixes a narrowing warning (treated as an error) affecting some platfo…

    …rms (#2117)
    
    Looks like #2063 has a
    "narrowing" warning that is now treated as an error and is hence causing
    CI builds to fail.
    
    Applies the same fix as
    #2107 to fix this
    warning.
    bashbaug authored Oct 16, 2024
    Configuration menu
    Copy the full SHA
    c071db7 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2024

  1. Fix bug in mutable_command_full_dispatch (#2118)

    The test is missing clFinish after clEnqueueSVMUnmap. Add clFinish after
    clEnqueueSVMUnmap.
    
    Signed-off-by: Xin Jin <xin.jin@arm.com>
    xinjin01 authored Oct 17, 2024
    Configuration menu
    Copy the full SHA
    63ce937 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2024

  1. conversions: fix condition for adding -cl-denorms-are-zero (#2067)

    Commit b6941b6 ("Add fp16 testing to conversions and bruteforce
    (#1975)", 2024-06-18) introduced a behavioural change for non-half
    tests. The `-cl-denorms-are-zero` option could be added for non-half
    tests such as `char_rtn_float` even when `gForceFTZ` was `false`. Fix
    the condition by also taking the input and output types into account.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    d1fe1ec View commit details
    Browse the repository at this point in the history
  2. add SPIR-V 1.4 testing for Image Operands and Loop Controls (#2034)

    This PR adds targeted testing for SPIR-V 1.4 features. Specifically,
    this PR adds testing for:
    
    1. The new Image Operand for SignExtend and ZeroExtend.
    2. The new Loop Controls MinIterations, MaxIterations,
    IterationMultiple, PeelCount, and PartialCount.
    bashbaug authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    94257de View commit details
    Browse the repository at this point in the history
  3. add SPIR-V 1.4 testing for no integer wrap decorations (#2041)

    This PR adds targeted testing for SPIR-V 1.4 features. Specifically,
    this PR adds testing for the NoSignedWrap and NoUnsignedWrap
    decorations.
    
    We can reuse large parts of the testing for the
    `cl_khr_spirv_no_integer_wrap_decoration` extension to test the SPIR-V
    1.4 feature.
    bashbaug authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    ec63944 View commit details
    Browse the repository at this point in the history
  4. vulkan: Use image row pitch (#2077)

    When importing a Vulkan external image, query and
    pass OpenCL a row pitch if OpenCL is assuming linear for the imported
    external handle type. Additionally fix a bug where OpenCL is being told
    to create mipmapped images at all times.
    
    ---------
    
    Co-authored-by: dcrawley <dcrawley@qti.qualcomm.com>
    joshqti and dcrawley authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    5026b1b View commit details
    Browse the repository at this point in the history
  5. Command buffer testing fixes (#2081)

    Signed-off-by: Gorazd Sumkovski <gorazd.sumkovski@arm.com>
    gorazd-sumkovski-arm authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    1a17853 View commit details
    Browse the repository at this point in the history
  6. Fix bug in mutable_command_full_dispatch (#2082)

    This test did not pass the `-cl-std=` flag when building the program. As
    a result, for an OpenCL 3.0 device, the program will be "compiled using
    the highest OpenCL C 1.x language version supported" by the device.
    However this will force uniform work-group sizes which leads to a
    `CL_INVALID_WORK_GROUP_SIZE` error.
    
    To fix this, use the `create_single_kernel_helper()` helper function
    which will automatically get the device version and pass that to
    `-cl-std=` when building the program.
    
    ---------
    
    Signed-off-by: Gorazd Sumkovski <gorazd.sumkovski@arm.com>
    gorazd-sumkovski-arm authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    6a2c0b1 View commit details
    Browse the repository at this point in the history
  7. Some events are not released in test_mem_host_flags (#2104)

    In test_mem_host_flags, some events are not released. In fact, they are
    not used, so they can be removed altogether.
    aharon-abramson authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    482a6bc View commit details
    Browse the repository at this point in the history
  8. Add testing of CL_UNORM_INT_2_101010_EXT (#2112)

    All existing tests in `test_image_streams`, that are capable of testing
    image formats using the `CL_UNORM_INT_2_101010_EXT` data type, do so.
    
    Signed-off-by: Gorazd Sumkovski <gorazd.sumkovski@arm.com>
    gorazd-sumkovski-arm authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    e678277 View commit details
    Browse the repository at this point in the history
  9. [NFC] relationals: fix -Wformat-security warnings (#2084)

    Fix a "format string is not a string literal (potentially insecure)"
    warning.
    
    There is no security issue here as the format string argument is
    constructed using a stringstream right before. Fix this occurrence
    anyway to allow enabling the warning globally.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    5b3bfee View commit details
    Browse the repository at this point in the history
  10. vulkan: accept device selection (#2113)

    - read CL_DEVICE_TYPE_ when specified like other conformance tests
    - reject non-GPU device types
    
    Co-authored-by: dcrawley <dcrawley@qti.qualcomm.com>
    joshqti and dcrawley authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    899cbf5 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2024

  1. semaphore: fix mistyped "platform" in log messages (#2128)

    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    6337d9b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b1dfe8a View commit details
    Browse the repository at this point in the history
  3. add SPIR-V 1.4 testing for OpPtrEqual, OpPtrNotEqual, OpPtrDiff (#2054)

    This PR adds targeted testing for the SPIR-V 1.4 instructions
    OpPtrEqual, OpPtrNotEqual, and OpPtrDiff.
    bashbaug authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    bc5f6cd View commit details
    Browse the repository at this point in the history
  4. [NFC] math_brute_force: use getAllowedUlpError for half (#2086)

    Call `getAllowedUlpError` to obtain the allowed ULP error for all of the
    half type (fp16) tests. The aim is to standardise obtaining the desired
    ULP requirement and pave the way for adding the Embedded Profile ULP
    errors.
    
    Contributes to #867
    Contributes to #1685
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    dd24546 View commit details
    Browse the repository at this point in the history
  5. Fix for out of bounds access (#2105)

    Rounding up the clusters_results size to avoid out of bounds access when
    subgroup_size is not a multiple of cluster_size.
    tomasz-platek authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    66fd9e4 View commit details
    Browse the repository at this point in the history
  6. Fix check for CL_DEVICE_HALF_FP_CONFIG. (#2108)

    When cl_khr_fp16 is not supported, this property is not available.
    
    Note that the spec is different for
    CL_DEVICE_{PREFERRED,NATIVE}_VECTOR_WIDTH_HALF: those properties are
    always available and return 0 if cl_khr_fp16 is not supported, so those
    checks are left as is.
    hvdijk authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    7d3e1f0 View commit details
    Browse the repository at this point in the history
  7. cl_khr_semaphore: fix -Wformat warnings (#2124)

    Add a `format` parameter to the macro, to be able to specify how to
    print the expected and actual parameter values.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    8369028 View commit details
    Browse the repository at this point in the history
  8. remove using namespace std and use std namespace explicitly (#2125)

    Removes `using namespace std` and adds `std::` explicitly instead, which
    is usually on calls to `min`.
    
    This is generally best practice, and it also might be helpful when there
    are the same function names in the std namespace and in the global
    namespace (e.g. #1833).
    bashbaug authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    d8228f0 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2024

  1. add SPIR-V 1.4 testing for UserSemantic (#2053)

    This PR adds targeted testing for more SPIR-V 1.4 features.
    Specifically, this PR adds testing for OpDecorateString,
    OpMemberDecorateString, and the UserSemantic decoration.
    bashbaug authored Oct 31, 2024
    Configuration menu
    Copy the full SHA
    c4119f0 View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2024

  1. Added test to verify required features coupling (#2115)

    Fixes #1366 according to task description.
    shajder authored Nov 5, 2024
    Configuration menu
    Copy the full SHA
    6563c90 View commit details
    Browse the repository at this point in the history
  2. Enable building OpenCL-CTS with Intel DPC++/C++ compiler ICX on Windo…

    …ws (#2088)
    
    Currently Intel® C++ Compiler Classic (ICC) is supported to build
    OpenCL-CTS on Windows. This compiler has been discontinued since the
    second half of 2023. Instead, Intel recommends that users transition to
    use the LLVM-based Intel® oneAPI DPC++/C++ Compiler (ICX).
    This change is to enable users to build OpenCL-CTS with ICX on Windows.
    qichaogu authored Nov 5, 2024
    Configuration menu
    Copy the full SHA
    ccd4550 View commit details
    Browse the repository at this point in the history
  3. kernel_image_methods: Fix size checks in 1Dbuffer case (#2106)

    Image height is initialized to 0. But the size calculation should assume
    a height of 1.
    dneto0 authored Nov 5, 2024
    Configuration menu
    Copy the full SHA
    040dc5f View commit details
    Browse the repository at this point in the history
  4. Fix CTS mutable_dispatch memory leak (#2129)

    Current class wrapper of the CTS test framework allows getting the
    pointer of the private member object. This puts the object at risk of
    losing its original value if the pointer gets reassigned, causing a
    memory leak and potentially other problems.
    
    This happens to the "clMemWrapper kernel" used by
    mutable_command_work_groups tests, where the "clMemWrapper kernel" gets
    initialised by the default basic setup function and then it gets
    reassigned by the build_program_create_kernel_helper() helper function
    through pointer.
    
    This patch fixes this issue by updating mutable_command_work_groups
    tests: instead of calling basic setup function and then initialise the
    "clMemWrapper kernel" object again in the helper function, it now
    overrides the basic setup function to make sure the "clMemWrapper
    kernel" will be assigned only once.
    
    Signed-off-by: Xin Jin <xin.jin@arm.com>
    xinjin01 authored Nov 5, 2024
    Configuration menu
    Copy the full SHA
    e211470 View commit details
    Browse the repository at this point in the history
  5. Import Vulkan resources via named NT handle (#1895)

    Add coverage to import Vulkan resources (memory and semaphore) in
    Windows via named NT handles.
    If no name is given during resource creation, then use NT handles for
    import.
    If a name is given, have an option to either use that name or get the NT
    handle and use that for import.
    Resolves KhronosGroup/OpenCL-Docs#943
    saurabhnv authored Nov 5, 2024
    Configuration menu
    Copy the full SHA
    ef73a1d View commit details
    Browse the repository at this point in the history
  6. vulkan: Remove redundant negative testing (#2078)

    - negative testing for semaphore functions is accomplished in semaphore
    tests, as well as create image in the api test
    
    Co-authored-by: dcrawley <dcrawley@qti.qualcomm.com>
    joshqti and dcrawley authored Nov 5, 2024
    Configuration menu
    Copy the full SHA
    5d4b51b View commit details
    Browse the repository at this point in the history
  7. Fix payload value query for external semaphores (#2127)

    When creating a CL semaphore object from a Vulkan semaphore one, we
    explicitly pass `-1` as the file descriptor value in the case of
    `VULKAN_EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD`. According to the CL
    specification:
    
    >     The special value -1 for fd is treated like a valid sync file
    >     descriptor referring to an object that has already signaled. The
    >     import operation will succeed and the semaphore will have a
    >     temporarily imported payload as if a valid file descriptor had
    >     been provided.
    
    The test currently checks that the semaphore payload is unsignalled,
    unconditionally, which is incorrect.
    
    Changed the test to check for the correct expected payload value.
    
    Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
    ahesham-arm authored Nov 5, 2024
    Configuration menu
    Copy the full SHA
    10130a1 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2024

  1. add SPIR-V 1.4 testing for various miscellaneous additions (#2122)

    This PR adds targeted testing for a few remaining miscellaneous SPIR-V
    1.4 features:
    
    * Variables in the Function storage class can have a NonWriteable
    decoration.
    * OpCopyMemorySized can have two optional memory operands.
    * OpSelect can have composite operands that are not vectors.
    bashbaug authored Nov 11, 2024
    Configuration menu
    Copy the full SHA
    b149060 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2024

  1. Corrected build under msvc compiler #1833 (#2121)

    Fixes #1833 according to task description.
    kamil-goras-mobica authored Nov 12, 2024
    Configuration menu
    Copy the full SHA
    265cc18 View commit details
    Browse the repository at this point in the history
  2. Re-enable simple_semaphore_2 (#2123)

    Re-enable a disabled external semaphore test.
    Delete obsolete subtests that remain in comments.
    joshqti authored Nov 12, 2024
    Configuration menu
    Copy the full SHA
    239159f View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2024

  1. Added semaphore test to cover out-of-order operations synchronized wi…

    …th barrier (#2068)
    
    Fixes #1979 according to task description.
    shajder authored Nov 19, 2024
    Configuration menu
    Copy the full SHA
    a9be3cc View commit details
    Browse the repository at this point in the history
  2. Refactor test copy from and to image to buffer (#2138)

    This change refactors the following files:
    1. test_imagearraycopy.cpp
    2. test_arrayimagecopy.cpp
    
    The purpose of refactoring is to allow passing different buffer and
    image flags to the test function as well as passing customisable test
    functions.
    
    Signed-off-by: Michael Rizkalla <michael.rizkalla@arm.com>
    MichaelRizkalla-arm authored Nov 19, 2024
    Configuration menu
    Copy the full SHA
    918d561 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2024

  1. [NFC] kernelHelpers: remove unused macros and prototypes (#2156)

    None of these are referenced anywhere in the code, so remove them.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Nov 22, 2024
    Configuration menu
    Copy the full SHA
    2358b46 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2024

  1. add SPIR-V 1.4 testing for OpCopyLogical (#2136)

    This PR adds targeted testing for the SPIR-V 1.4 instruction
    OpCopyLogical.
    bashbaug authored Nov 25, 2024
    Configuration menu
    Copy the full SHA
    e9a248f View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2024

  1. Configuration menu
    Copy the full SHA
    feca4c6 View commit details
    Browse the repository at this point in the history
  2. Fix snorm (#2033)

    When comparing scanlines for SNORM images, take into account that -1.0
    can be exactly represented in two different ways.
    
    ---------
    
    Co-authored-by: Ben Ashbaugh <ben.ashbaugh@intel.com>
    joshqti and bashbaug authored Nov 26, 2024
    Configuration menu
    Copy the full SHA
    1102e0b View commit details
    Browse the repository at this point in the history
  3. printf: add fflush(stdout) at the end (#2103)

    Some platforms (Windows in our case) seem to need this.
    lakshmih authored Nov 26, 2024
    Configuration menu
    Copy the full SHA
    d3b9520 View commit details
    Browse the repository at this point in the history
  4. Fix various Wformat warnings (#2135)

    test_copy_1D.cpp: num_mip_levels is a cl_uint, so don't cast and just
    print using `%u`.
    
    test_pipe_info.cpp: arg_type_qualifier is a 64-bit wide bitfield, so
    print in hexadecimal format using the correct length modifier.
    
    test_device_partition.cpp: it is not clear what the bit width of
    `cl_device_partition_property` should be, so cast the operands to align
    with the format specifiers.
    
    Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
    svenvh authored Nov 26, 2024
    Configuration menu
    Copy the full SHA
    e360d2d View commit details
    Browse the repository at this point in the history
  5. Command buffer test adjustments (#2141)

    Signed-off-by: Gorazd Sumkovski <gorazd.sumkovski@arm.com>
    Co-authored-by: Ewan Crawford <ewan.cr@gmail.com>
    gorazd-sumkovski-arm and EwanC authored Nov 26, 2024
    Configuration menu
    Copy the full SHA
    96e3d7e View commit details
    Browse the repository at this point in the history
  6. Use cl_uint in some SPIR-V tests to avoid UB (#2159)

    The following tests under `spirv_new`:
    * `op_branch_conditional`
    * `op_phi`
    * `op_selection_merge`
    
    were using randomly generated `cl_int` values, and storing the
    difference between them as a `cl_int`. If one of the generated values is
    negative and large enough, while the other is positive and large enough,
    the difference then becomes a larger value that cannot be represented
    using `cl_int`.
    
    Switch the tests to use `cl_uint` instead, and update the relevant
    spvasm{32,64} files to use `OpULessThan` instead of `OpSLessThan`.
    
    Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
    ahesham-arm authored Nov 26, 2024
    Configuration menu
    Copy the full SHA
    5d85fb3 View commit details
    Browse the repository at this point in the history
  7. Use the system package manager to install cross-compilers (#2158)

    On Ubuntu, use the system's package manager, `apt`, to download and
    install the cross-compilers for Arm and AArch64. This replaces
    downloading the compilers as tarballs.
    
    To ensure that the correct version of the compiler is used when calling
    one without the version suffix, e.g. `aarch64-linux-gnu-gcc`, use
    `update-alternatives`.
    
    On Linux, the compilers for `x86_64`, `arm`, and `aarch64` will now
    correctly use the filesystem root as their sysroots, i.e. `/usr/include`
    will be used when searching for headers, instead of each compiler
    providing its own.
    ahesham-arm authored Nov 26, 2024
    Configuration menu
    Copy the full SHA
    df5e87b View commit details
    Browse the repository at this point in the history
  8. [RFC] Move logic for test registration to the test harness (#2151)

    And use in device_timer suite.
    
    Signed-off-by: Kévin Petit <kpet@free.fr>
    kpet authored Nov 26, 2024
    Configuration menu
    Copy the full SHA
    0a1456d View commit details
    Browse the repository at this point in the history