OpenCL-CTS
OpenCL-CTS copied to clipboard
Refactor buffer ReadWrite and Copy tests
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_flagsto be passed to the test.
- Allow different
- test_bufferreadwriterect:
- Allow different
cl_mem_flagsto be passed to the test. - Customisable copy, read and write functions.
- Allow different
- test_buffer_copy
- Fill the destination buffer with
invalid_ptrinstead ofout_ptrif created withCL_MEM_(USE/COPY)_HOST_PTR.
- Fill the destination buffer with
- test_buffer_partial_copy
- Fill the destination buffer with
invalid_ptrinstead ofout_ptrif created withCL_MEM_(USE/COPY)_HOST_PTR.
- Fill the destination buffer with