Merge pull request #933 from whitequark/wasm-no-parallel-refine

Disable parallel refinement on WebAssembly
This commit is contained in:
gatecat 2022-03-05 20:00:38 +00:00 committed by GitHub
commit 81e970867d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 1 deletions

View File

@ -174,7 +174,9 @@ po::options_description CommandHandler::getGeneralOptions()
"placer heap criticality exponent (int, default: 2)"); "placer heap criticality exponent (int, default: 2)");
general.add_options()("placer-heap-timingweight", po::value<int>(), "placer heap timing weight (int, default: 10)"); general.add_options()("placer-heap-timingweight", po::value<int>(), "placer heap timing weight (int, default: 10)");
#if !defined(__wasm)
general.add_options()("parallel-refine", "use new experimental parallelised engine for placement refinement"); general.add_options()("parallel-refine", "use new experimental parallelised engine for placement refinement");
#endif
general.add_options()("router2-heatmap", po::value<std::string>(), general.add_options()("router2-heatmap", po::value<std::string>(),
"prefix for router2 resource congestion heatmaps"); "prefix for router2 resource congestion heatmaps");

View File

@ -18,8 +18,11 @@
*/ */
#include "parallel_refine.h" #include "parallel_refine.h"
#include "fast_bels.h"
#include "log.h" #include "log.h"
#if !defined(__wasm)
#include "fast_bels.h"
#include "timing.h" #include "timing.h"
#include "scope_lock.h" #include "scope_lock.h"
@ -944,3 +947,16 @@ bool parallel_refine(Context *ctx, ParallelRefineCfg cfg)
} }
NEXTPNR_NAMESPACE_END NEXTPNR_NAMESPACE_END
#else /* !defined(__wasm) */
NEXTPNR_NAMESPACE_BEGIN
bool parallel_refine(Context *ctx, ParallelRefineCfg cfg)
{
log_abort();
}
NEXTPNR_NAMESPACE_END
#endif