From 3b6c07c398c3da29d98dd2710703aaa27f1b0b1a Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Mon, 15 Apr 2019 00:02:35 -0500 Subject: [PATCH] nextpnr: enable OpenMP support (for Eigen) The new HEaP analytic placer for NextPNR uses Eigen for underlying placement algorithms. Enabling -DUSE_OPENMP passes -fopenmp onto the compiler, which Eigen picks up automatically with no extra work. This should result in placer speedups for large designs, e.g. on ECP5 85k chips. Signed-off-by: Austin Seipp --- pkgs/development/compilers/nextpnr/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/compilers/nextpnr/default.nix b/pkgs/development/compilers/nextpnr/default.nix index 5f0bb45933be..e2aa5375835e 100644 --- a/pkgs/development/compilers/nextpnr/default.nix +++ b/pkgs/development/compilers/nextpnr/default.nix @@ -46,6 +46,7 @@ stdenv.mkDerivation rec { [ "-DARCH=generic;ice40;ecp5" "-DICEBOX_ROOT=${icestorm}/share/icebox" "-DTRELLIS_ROOT=${trellisRoot}/trellis" + "-DUSE_OPENMP=ON" ] ++ (stdenv.lib.optional (!enableGui) "-DBUILD_GUI=OFF"); # Fix the version number. This is a bit stupid (and fragile) in practice