From a82f72eb04d4b5766f12d94febdf2f989ca7210a Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Thu, 17 Aug 2017 15:25:47 +0200 Subject: Add number of threads setting for MemlessPoly --- src/ConfigParser.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ConfigParser.cpp') diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp index 459811f..f27eb08 100644 --- a/src/ConfigParser.cpp +++ b/src/ConfigParser.cpp @@ -172,6 +172,9 @@ static void parse_configfile( if (pt.get("poly.enabled", 0) == 1) { mod_settings.polyCoefFilename = pt.get("poly.polycoeffile", "default"); + + mod_settings.polyNumThreads = + pt.get("poly.num_threads", 0); } // Output options -- cgit v1.2.3 From 6a9af4b8ff4f73e01ccb3bd07c0a971ef503c73d Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Thu, 17 Aug 2017 15:35:36 +0200 Subject: Move default poly to dpd/poly.coef --- dpd/dpd.ini | 2 +- dpd/poly.coef | 11 +++++++++++ dpdpoly.coef | 11 ----------- src/ConfigParser.cpp | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 dpd/poly.coef delete mode 100644 dpdpoly.coef (limited to 'src/ConfigParser.cpp') diff --git a/dpd/dpd.ini b/dpd/dpd.ini index 21d7d45..eb221e3 100644 --- a/dpd/dpd.ini +++ b/dpd/dpd.ini @@ -22,7 +22,7 @@ enabled=1 [poly] enabled=1 -polycoeffile=dpdpoly.coef +polycoeffile=dpd/poly.coef # How many threads to use for the predistorter. # If not set, detect automatically. diff --git a/dpd/poly.coef b/dpd/poly.coef new file mode 100644 index 0000000..b29fa26 --- /dev/null +++ b/dpd/poly.coef @@ -0,0 +1,11 @@ +5 +0 +0 +0.8 +0 +0 +0 +0 +0 +0 +0 diff --git a/dpdpoly.coef b/dpdpoly.coef deleted file mode 100644 index b29fa26..0000000 --- a/dpdpoly.coef +++ /dev/null @@ -1,11 +0,0 @@ -5 -0 -0 -0.8 -0 -0 -0 -0 -0 -0 -0 diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp index f27eb08..9ac1280 100644 --- a/src/ConfigParser.cpp +++ b/src/ConfigParser.cpp @@ -171,7 +171,7 @@ static void parse_configfile( // Poly coefficients: if (pt.get("poly.enabled", 0) == 1) { mod_settings.polyCoefFilename = - pt.get("poly.polycoeffile", "default"); + pt.get("poly.polycoeffile", "dpd/poly.coef"); mod_settings.polyNumThreads = pt.get("poly.num_threads", 0); -- cgit v1.2.3