Page 1 of 1

speedTest function in multiple cores

Posted: 27 Oct 2023, 21:04
by tue_qiang
I established a mixed logit model and about 20 random parameters are set. when I use 1000 MLHS draws for these parameter, the model runs a very long time, about several days. therefore, I use the speedTest function to explore the most suitable number of cores and the seconds used in likelihood calculation keep little changed since the 3 cores, no matter the draws are 500, 1000. Does it mean 3 cores is are the most suitable cores' number? I do not understand it, because I have so many random parameters and draws and in my mind, more cores lead higher model estimation speed.

Re: speedTest function in multiple cores

Posted: 30 Oct 2023, 05:52
by stephanehess
Hi

yes, this suggests that 3 cores is a good number to use. The benefits of multiple cores might decrease if you use too many cores

Stephane

Re: speedTest function in multiple cores

Posted: 30 Oct 2023, 10:12
by tue_qiang
Hi Stephane,

the running time is so long now, if i want to speed up it, what method could help it? i can apply for using supercomputer of my university, but I do not know if it will work.

Best,
Qiang

Re: speedTest function in multiple cores

Posted: 06 Nov 2023, 08:39
by stephanehess
yes, a faster computer will help