inducer / pyopencl

OpenCL integration for Python, plus shiny features
http://mathema.tician.de/software/pyopencl
Other
1.04k stars 237 forks source link

PYOPENCL_NO_CACHE: allow re-enabling the cache with False value #737

Closed matthiasdiener closed 2 months ago

matthiasdiener commented 2 months ago

(could do the same for LOOPY_NO_CACHE)

Currently, PYOPENCL_NO_CACHE set to any value will disable the cache. This can be confusing to users (who sometimes set PYOPENCL_NO_CACHE=0 in an attempt to re-enable the cache), and is in contrast to other software packages (including CUDA and pocl) that allow setting a specific environment variable value to enable or disable a cache.