You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 72358f5
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: FAQ.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
-[How can I see the code generated by Devito?](#how-can-i-see-the-code-generated-by-devito)
6
6
-[How can I see the compilation command with which Devito compiles the generated code?](#how-can-i-see-the-compilation-command-with-which-devito-compiles-the-generated-code)
7
7
-[Where does the generated code go and how do I look at it?](#where-does-the-generated-code-go-and-how-do-i-look-at-it)
8
-
-[Can I change the directory where Devito stashes the generated code?](#can-i-change-the-directory-where-devito-stashes-the-generated-code)
8
+
-[Can I change the directory where Devito caches the generated code?](#can-i-change-the-directory-where-devito-caches-the-generated-code)
9
9
-[I create an Operator, look at the generated code, and the equations appear in a different order than I expected.](#i-create-an-operator-look-at-the-generated-code-and-the-equations-appear-in-a-different-order-than-i-expected)
10
10
-[Do Devito Operators release the GIL when executing C code?](#do-devito-operators-release-the-GIL-when-executing-C-code)
11
11
-[What performance optimizations does Devito apply?](#what-performance-optimizations-does-devito-apply)
@@ -150,7 +150,7 @@ Set the environment variable `DEVITO_LOGGING=DEBUG`. When an Operator gets compi
150
150
If nothing seems to change, it is possible that no compilation is happening under-the-hood as all kernels have already been compiled in a previous run. You will then have to clear up the Devito kernel cache. From the Devito root directory, run:
151
151
152
152
```bash
153
-
python scripts/clear_devito_cache.py
153
+
python -m devito.clear_cache
154
154
```
155
155
156
156
[top](#Frequently-Asked-Questions)
@@ -162,8 +162,10 @@ Devito stores the generated code as well as the jit-compiled libraries in a temp
162
162
[top](#Frequently-Asked-Questions)
163
163
164
164
165
-
## Can I change the directory where Devito stashes the generated code?
166
-
Yes, just set the environment variable `TMPDIR` to your favorite location.
165
+
## Can I change the directory where Devito caches the generated code?
166
+
Yes, just set the environment variable `DEVITO_CACHE_DIR` to your preferred location.
167
+
Previously `TMPDIR` was used, now `$XDG_CACHE_DIR/devito` or `$HOME/.cache/devito` is used instead.
168
+
To restore the previous behaviour set `DEVITO_CACHE_DIR=$TMPDIR` or `DEVITO_CACHE_DIR=/tmp`, but beware that this may be a security concern on shared systems.
0 commit comments