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 <aseipp@pobox.com>
This commit is contained in:
Austin Seipp 2019-04-15 00:02:35 -05:00
parent a5add1e623
commit 3b6c07c398
No known key found for this signature in database
GPG Key ID: 25D2038DEB08021D

View File

@ -46,6 +46,7 @@ stdenv.mkDerivation rec {
[ "-DARCH=generic;ice40;ecp5" [ "-DARCH=generic;ice40;ecp5"
"-DICEBOX_ROOT=${icestorm}/share/icebox" "-DICEBOX_ROOT=${icestorm}/share/icebox"
"-DTRELLIS_ROOT=${trellisRoot}/trellis" "-DTRELLIS_ROOT=${trellisRoot}/trellis"
"-DUSE_OPENMP=ON"
] ++ (stdenv.lib.optional (!enableGui) "-DBUILD_GUI=OFF"); ] ++ (stdenv.lib.optional (!enableGui) "-DBUILD_GUI=OFF");
# Fix the version number. This is a bit stupid (and fragile) in practice # Fix the version number. This is a bit stupid (and fragile) in practice