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

Invoker cache created and written to even when PYOPENCL_NO_CACHE=1 #773

Closed
hvenev-insait opened this issue Jul 9, 2024 · 2 comments
Closed
Labels

Comments

@hvenev-insait
Copy link

When PYOPENCL_NO_CACHE=1, the invoker cache is always created when importing pyopencl.invoker. Furthermore, it is written to every time an invoker is created. PYOPENCL_NO_CACHE only seems to control reads.

To Reproduce
Steps to reproduce the behavior:

  1. Delete all caches.
  2. Run python3 with the PYOPENCL_NO_CACHE environment variable set to 1.
  3. Import pyopencl and run a kernel.
  4. Observe that the invoker cache now exists.

Expected behavior
When PYOPENCL_NO_CACHE=1, no attempts should be made to read caches, write caches, create caches, lock caches, or check whether caches exist.

Environment:

  • OS: Linux
  • ICD Loader and version: ocl-icd 2.3.2
  • ICD and version: pocl 6.0, NVIDIA 550.90.07
  • x86-64, NVIDIA A6000
  • Python version: 3.12.4
  • PyOpenCL version: 2024.1
@matthiasdiener
Copy link
Contributor

This should be fixed in 2024.2, see e.g. #736.

@hvenev-insait
Copy link
Author

Yes, it looks like that fixes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants