PanPalitta / phase_estimation

This project apply reinforcement learning algorithms based on DE and PSO to optimize adaptive quantum-phase estimation.
http://panpalitta.github.io/phase_estimation/
GNU General Public License v3.0
9 stars 5 forks source link

Gaussian and uniform RNGs are separated #28

Closed peterwittek closed 8 years ago

peterwittek commented 8 years ago

Please verify the correctness of the results and also do a quick benchmark if we lost anything in speed. I could not try the VSL version, but that should work too.

PanPalitta commented 8 years ago

I'm running the test on this version of the code. We should be able to compare this to the test I run for the nbproc discussion we had yesterday.

PanPalitta commented 8 years ago

Test from N=4 to N=24 shows no difference in speed with previous code. But there is segmentation fault at N=25.

peterwittek commented 8 years ago

Is this with VSL?

PanPalitta commented 8 years ago

No, this is with normal rng.

peterwittek commented 8 years ago

Well, then the segfault comes from somewhere else. In any case, please try it with VSL.

PanPalitta commented 8 years ago

I've tried testing the program using 5,6,10,12 processors and only the 6 and 12 processors produce segmentation fault as soon as the combination function is called. The 5-processor test runs smoothly, and the 10-processor test only produce segfault before the program exits (it's probably a problem with memory clean up). I've also isolated the part of the code in the combination that causes the segmentation fault, and it seems to be the part where the offspring is sent from my_rank = 0 to other processors.

So it seems that the segfault problem either involve MPI in some form or has something to do with the candidate class, since it is the one that were extensively changed during the unit test. I will look more into detail about this later. For now I'll merge this version with master so we can continue to work on the code.