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

Thread safety issue if two clfftBakePlan() calls, on different objects, execute concurrently #240

Open
azonenberg opened this issue Dec 1, 2021 · 0 comments

Comments

@azonenberg
Copy link

Using latest clfft binary packages for Debian, I get an assertion failure:

glscopeclient: /build/clfft-8xRwfG/clfft-2.12.2/src/library/repo.cpp:217:
clfftStatus FFTRepo::setclProgram(clfftGenerators, const FFTKernelSignatureHeader*, _cl_program* const&,
_cl_device_id* const&, _cl_context* const&): Assertion `NULL == p' failed.

Adding mutexes to serialize the bake operations eliminates the assertion. I have to date not seen any issues with concurrent execution of FFTs issued from different threads, only the bake operation.

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