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

Buffer overflows and barrier divergence in OpenCL-D TQ and TQH #24

Open
mn416 opened this issue Apr 16, 2024 · 0 comments
Open

Buffer overflows and barrier divergence in OpenCL-D TQ and TQH #24

mn416 opened this issue Apr 16, 2024 · 0 comments

Comments

@mn416
Copy link

mn416 commented Apr 16, 2024

First, thanks for this benchmark suite. I found it very straightforward to use.

A few issues:

Oclgrind reports a buffer overflow in the OpenCL-D TQ benchmark. The value *next in the TaskQueue_gpu kernel is used to index queue without knowing that it is in bounds, both before the while loop is entered, and at the end of the while loop.

Oclgrind also reports a barrier synchronisation issue in the while loop: shared local data t is read and then modified without a barrier in between, forming a race condition between work items in a workgroup.

I believe there are similar issues in the TQH benchmark.

Oclgrind also reported synchronisation issues in other benchmarks, which may be worth investigating.

@mn416 mn416 changed the title Buffer overflows are barrier divergence in OpenCL-D TQ and TQH Buffer overflows and barrier divergence in OpenCL-D TQ and TQH Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant