You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commit 9923765 fixes the issues. Now both the factorized and the multivariate proposal are tested to yield identical results with 1 and 2 threads. parallel_TEST gives some timing output.
For 5 parameters, I get
previous time: 1.17563
Difference in time taken between serial and parallel: 0.446478
Time improvement factor: 1.61233
product proposal> ends
--
previous time: 0.37267
Difference in time taken between serial and parallel: 0.088136
Time improvement factor: 1.30976
multivariate proposal> ends
30 parameters
previous time: 6.18534
Difference in time taken between serial and parallel: 2.15108
Time improvement factor: 1.5332
product proposal> ends
--
previous time: 1.03169
Difference in time taken between serial and parallel: 0.337621
Time improvement factor: 1.48644
multivariate proposal> ends
35
previous time: 11.3664
Difference in time taken between serial and parallel: 3.84182
Time improvement factor: 1.51057
product proposal> ends
--
previous time: 3.24501
Difference in time taken between serial and parallel: 0.600265
Time improvement factor: 1.22697
multivariate proposal> ends
40 parameters
previous time: 8.22501
Difference in time taken between serial and parallel: 2.6779
Time improvement factor: 1.48276
product proposal> ends
--
previous time: 6.47545
Difference in time taken between serial and parallel: 1.79449
Time improvement factor: 1.38336
multivariate proposal> ends
50 parameters
previous time: 10.7387
Difference in time taken between serial and parallel: 3.62209
Time improvement factor: 1.50896
product proposal> ends
--
previous time: 16.9412
Difference in time taken between serial and parallel: 1.53451
Time improvement factor: 1.0996
multivariate proposal> ends
and 100 parameters
previous time: 28.6068
Difference in time taken between serial and parallel: 4.71195
Time improvement factor: 1.1972
product proposal> ends
--
previous time: 52.4865
Difference in time taken between serial and parallel: -2.34735
Time improvement factor: 0.957192
multivariate proposal> ends
So the factorized proposal scales almost linearly with dimension as expected. The multivariate is much faster for low to medium number of dimensions but slower in 50D and 100D. Is it for the D^2 scaling of the matrix operations? I'm really surprised it's that bad. Perhaps we can optimize this. What is happening for D=35? Some cache size issue? Both proposal are much slower than for D=30. Perhaps this is worth another issue, the original issue is solved now.
For a fair comparison, we'd have to measure the effective sample size but from what I saw in the performance test suite, the autocorrelation looked rather similar for both proposal and targets that both can handle well. In parallel_TEST, it's a unit Gaussian, so an easy target
Right now we use ROOT structures for the matrix algebra. My guess is that this is not the fastest on the market. If we saw a significant improvement with something like Boost (or even CLHEP), we could think to make it a configure option. I'd say something to investigate for 1.1 for sure.
Activity
fredRos commentedon Aug 25, 2015
The
parallel_TESTreads in the samples from chain. We have to update it to the new formatgreenwald commentedon Aug 31, 2015
Completed. Pull request will be submitted soon. Pending further issues to be addressed in #9
[test] Update parallel_TEST to pass
fredRos commentedon Aug 31, 2015
Sorry @greenwald, now we did the same work twice. Don't steal my issues 😆
greenwald commentedon Aug 31, 2015
Didn't realize there was an issue open until after I fixed it. Yours looks nicer anyway.
fredRos commentedon Aug 31, 2015
Commit 9923765 fixes the issues. Now both the factorized and the multivariate proposal are tested to yield identical results with 1 and 2 threads.
parallel_TESTgives some timing output.For 5 parameters, I get
30 parameters
35
40 parameters
50 parameters
and 100 parameters
So the factorized proposal scales almost linearly with dimension as expected. The multivariate is much faster for low to medium number of dimensions but slower in 50D and 100D. Is it for the D^2 scaling of the matrix operations? I'm really surprised it's that bad. Perhaps we can optimize this. What is happening for D=35? Some cache size issue? Both proposal are much slower than for D=30. Perhaps this is worth another issue, the original issue is solved now.
For a fair comparison, we'd have to measure the effective sample size but from what I saw in the performance test suite, the autocorrelation looked rather similar for both proposal and targets that both can handle well. In
parallel_TEST, it's a unit Gaussian, so an easy targetgreenwald commentedon Aug 31, 2015
Right now we use ROOT structures for the matrix algebra. My guess is that this is not the fastest on the market. If we saw a significant improvement with something like Boost (or even CLHEP), we could think to make it a configure option. I'd say something to investigate for 1.1 for sure.