From 2c8d7ed85551ba630699a48f752c4912328f7be4 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Tue, 29 Jul 2025 16:13:15 +0200 Subject: [PATCH] Build nOS-V with PAPI support To support the new instrumentation for HWC it would be useful to already build nOS-V with PAPI support enabled. The enablePapi switch allows it to be disabled with `nosv.override { enablePapi = false; }`. Reviewed-by: Aleix Roca Nonell Tested-by: Rodrigo Arias Mallo --- pkgs/nosv/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/nosv/default.nix b/pkgs/nosv/default.nix index 889f5c3..0c02fc9 100644 --- a/pkgs/nosv/default.nix +++ b/pkgs/nosv/default.nix @@ -6,6 +6,8 @@ , pkg-config , numactl , hwloc +, papi +, enablePapi ? true , cacheline ? 64 # bits , ovni ? null , useGit ? false @@ -56,5 +58,5 @@ in numactl hwloc ovni - ]; + ] ++ lib.optionals enablePapi [ papi ]; }