From fffe297194127db67000af0dc897830749feb3b3 Mon Sep 17 00:00:00 2001 From: LouisChourakiSonos Date: Mon, 9 Dec 2024 17:27:07 +0100 Subject: [PATCH] fixed forgotten not --- cli/src/dump.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cli/src/dump.rs b/cli/src/dump.rs index 750c6023ef..06c2541d46 100644 --- a/cli/src/dump.rs +++ b/cli/src/dump.rs @@ -133,7 +133,7 @@ pub fn handle( &inputs[0], )?; } - #[cfg(any(target_os = "macos", target_os = "ios"))] + #[cfg(not(any(target_os = "macos", target_os = "ios")))] { bail!("Metal profiling called on non-Metal device"); } @@ -168,9 +168,11 @@ pub fn handle( if sub_matches.is_present("tmp_mem_usage") { let plan_options = plan_options_from_subcommand(sub_matches)?; - annotations.track_tmp_memory_usage(model, + annotations.track_tmp_memory_usage( + model, |n| !(n.op_is::()), - plan_options.skip_order_opt_ram)?; + plan_options.skip_order_opt_ram, + )?; } if let Some(asserts) = ¶ms.assertions.assert_output_facts {