From 18dbe591ed36b57e4e6b35b405e187850f6b7389 Mon Sep 17 00:00:00 2001 From: moven0831 Date: Mon, 29 Jan 2024 16:58:54 +0800 Subject: [PATCH] fix(generate_benchmark_report): main function exist when feature are not enabled --- .../gpu_explorations/bin/generate_benchmark_report.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mopro-core/src/middleware/gpu_explorations/bin/generate_benchmark_report.rs b/mopro-core/src/middleware/gpu_explorations/bin/generate_benchmark_report.rs index 533f9e39..6dbe3d57 100644 --- a/mopro-core/src/middleware/gpu_explorations/bin/generate_benchmark_report.rs +++ b/mopro-core/src/middleware/gpu_explorations/bin/generate_benchmark_report.rs @@ -32,3 +32,8 @@ fn main() { .unwrap(); } } + +#[cfg(not(feature = "gpu-benchmarks"))] +fn main() { + println!("The gpu-benchmarks feature is not enabled."); +}