intel / intel/compute-benchmarks

CopyBuffer benchmark calls clEnqueueFillBuffer with pattern_size > size which the CL spec requires to fail

Open
#43 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
44
Forks
49
PR merge metrics
No merged PRs in 30d

Description

The OpenCL spec states for [clEnqueueFillBuffer](https://registry.khronos.org/OpenCL/specs/unified/html/OpenCL_API.html#clEnqueueFillBuffer):

> [clEnqueueFillBuffer](https://registry.khronos.org/OpenCL/specs/unified/html/OpenCL_API.html#clEnqueueFillBuffer) returns [CL_SUCCESS](https://registry.khronos.org/OpenCL/specs/unified/html/OpenCL_API.html#CL_SUCCESS) if the function is executed successfully. Otherwise, it returns one of the following errors:
> [CL_INVALID_VALUE](https://registry.khronos.org/OpenCL/specs/unified/html/OpenCL_API.html#CL_INVALID_VALUE)
> if size is not a multiple of pattern_size

This behavior can be seen with `./memory_benchmark_ocl --test=CopyBuffer --size=1 --contents=Zeros --compressedSource=0 --compressedDestination=0 --useEvents=1`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.