Re: [ojAlgo-user] Set amount of available threads
Mathematics, linear algebra and optimisation
Brought to you by:
apete
From: Anders P. <an...@op...> - 2014-06-17 11:45:29
|
There is also org.ojalgo.matrix.MatrixUtils.setAllOperationThresholds(int) Setting this to something very large will effectively turn off multithreading for the linear algebra part of ojAlgo, but does not affect other parts (like the IntegerSolver). /Anders On 17 jun 2014, at 11:47, Anders Peterson <an...@op...> wrote: > One thing you can do is to set > > org.ojalgo.OjAlgoUtils.ENVIRONMENT > > to a "fake" value that suits your needs. You have to this before org.ojalgo.concurrent.DaemonPoolExecutor.INSTANCE is initialized. > > > Or, you can modify ojAlgo so that > > org.ojalgo.concurrent.DaemonPoolExecutor.INSTANCE > > is initialized with something different. Use something like ManagedExecutorService ... (don't know exactly) > > > Is that enough? What are your requirements? > > > /Anders > > > On 17 jun 2014, at 11:03, Christian Wirth <cw...@ke...> wrote: > >> I want to limit the amount of threads/cores ojAlgo can use. How to do that ? >> This is required because of HPC usage in an shared environment. >> >> best, Christian >> >> >> >> ------------------------------------------------------------------------------ >> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions >> Find What Matters Most in Your Big Data with HPCC Systems >> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. >> Leverages Graph Analysis for Fast Processing & Easy Data Exploration >> http://p.sf.net/sfu/hpccsystems >> _______________________________________________ >> ojAlgo-user mailing list >> ojA...@li... >> https://lists.sourceforge.net/lists/listinfo/ojalgo-user >> >> > |