From ac8e664e32512c58dd4eb398b8ba9ddd3080b0c7 Mon Sep 17 00:00:00 2001 From: Lukasz Stafiniak Date: Sat, 8 Feb 2025 17:51:05 +0100 Subject: [PATCH] Recompile code if OCANNL_LOG_LEVEL env var changes; a todo --- arrayjit/lib/dune | 2 ++ lib/dune | 1 + todo.md | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arrayjit/lib/dune b/arrayjit/lib/dune index 1aac3ac4..75ce50c5 100644 --- a/arrayjit/lib/dune +++ b/arrayjit/lib/dune @@ -1,6 +1,8 @@ (library (name arrayjit) (public_name arrayjit) + (preprocessor_deps + (env_var OCANNL_LOG_LEVEL)) (libraries base printbox diff --git a/lib/dune b/lib/dune index c044c5b4..d4139559 100644 --- a/lib/dune +++ b/lib/dune @@ -15,6 +15,7 @@ ; mem_usage ppx_minidebug.runtime arrayjit) + (preprocessor_deps (env_var OCANNL_LOG_LEVEL)) (preprocess (pps ppx_compare diff --git a/todo.md b/todo.md index dcac7fde..76ad53b5 100644 --- a/todo.md +++ b/todo.md @@ -1,4 +1,5 @@ # This file is for tasks with a smaller granularity than issues, typically immediate tasks. ppx_cd: reduce code duplication -ppx_cd: get rid of binary_op and use binary_ops table instead {cm:2025-01-28} \ No newline at end of file +ppx_cd: get rid of binary_op and use binary_ops table instead {cm:2025-01-28} +Tensor.print_tree should never force memory modes \ No newline at end of file