Dear Titus:
Thanks very much for your reply. Maybe I did not say clearly, since I given a simple example for my problem. In fact, I was emulating a communication system case to get how the performances are at different SNR(the ratio of signal power to noise). Every SNR is a for loop, where the generation of value of white noise must be same in every loop to eliminate the effect of noise change , and only the ratio of SNR(dB) is changed. So I need initializ same seed when per loop begins.
The parallel simulation is only for speeding to me, if the parallel output is not as expected, I need revist the code to check in serial state. My concern is that the generation of white noise is different between serial state and parallel state in same loop, even if I set the same seed for RNG. I can not repeat situation of simulation in serial state as same as in parallel state. If I use randn('state',seed) in both serial and parallel code, I can repeat and fix bug easily. why RNG is invalid in this case?
Thank you! Best regards,
댓글 수: 0
로그인 to comment.