OpenCL-CTS icon indicating copy to clipboard operation
OpenCL-CTS copied to clipboard

Refactor buffer ReadWrite and Copy tests

Open MichaelRizkalla-arm opened this issue 10 months ago • 0 comments

This change refactors the following tests to use RAII to clean-up allocated resources on exit, and adds additional changes as mentioned below:

  • test_arrayreadwrite
    • Allow different cl_mem_flags to be passed to the test.
  • test_bufferreadwriterect:
    • Allow different cl_mem_flags to be passed to the test.
    • Customisable copy, read and write functions.
  • test_buffer_copy
    • Fill the destination buffer with invalid_ptr instead of out_ptr if created with CL_MEM_(USE/COPY)_HOST_PTR.
  • test_buffer_partial_copy
    • Fill the destination buffer with invalid_ptr instead of out_ptr if created with CL_MEM_(USE/COPY)_HOST_PTR.

MichaelRizkalla-arm avatar Feb 03 '25 10:02 MichaelRizkalla-arm