Skip to content

USVM test for multithreaded alloc & free#2668

Open
EwanC wants to merge 2 commits intoKhronosGroup:cl_khr_unified_svmfrom
EwanC:usvm_threading
Open

USVM test for multithreaded alloc & free#2668
EwanC wants to merge 2 commits intoKhronosGroup:cl_khr_unified_svmfrom
EwanC:usvm_threading

Conversation

@EwanC
Copy link
Copy Markdown
Contributor

@EwanC EwanC commented Apr 17, 2026

Allocation and free entry-points USVM entry-points should be threadsafe as they may be used in a threaded manner.

Stresses the bug found in the USVM emulation layer bashbaug/SimpleOpenCLSamples#165

Allocation and free entry-points USVM entry-points should be threadsafe as they
may be used in a threaded manner.

Stresses the bug found in the USVM emulation layer bashbaug/SimpleOpenCLSamples#165
Without giving each thread it's own USVM wrapper we
hit issues with double allocations, resulting in the wrapper
doing an implicit free before the tests explicit free of the
same ptr.
Copy link
Copy Markdown
Contributor

@bashbaug bashbaug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Latest version LGTM.

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

Successfully merging this pull request may close these issues.

2 participants