From c18f582f06af8b7487b21f6f2ac7f6911e10d5d6 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Mon, 6 Jul 2015 01:36:50 -0500 Subject: [PATCH] Obey CG_NO_CACHE in addition to LOOPY_NO_CACHE --- loopy/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/loopy/__init__.py b/loopy/__init__.py index ecadbf4e9..c63aa5f90 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): -- GitLab