diff --git a/loopy/__init__.py b/loopy/__init__.py index ecadbf4e95b4f7e12d5093c6a21929599fcdcc62..c63aa5f90d6537496ea9fe4ecb11c441070c91b4 100644 --- a/loopy/__init__.py +++ b/loopy/__init__.py @@ -1495,7 +1495,10 @@ def register_function_manglers(kernel, manglers): # {{{ cache control import os -CACHING_ENABLED = "LOOPY_NO_CACHE" not in os.environ +CACHING_ENABLED = ( + "LOOPY_NO_CACHE" not in os.environ + and + "CG_NO_CACHE" not in os.environ) def set_caching_enabled(flag):