Hello all,
I want to do some work based on Monte Carlo method, and I have a question.
A basic example is like that:

sum_accept = 0; sum_random = 0;

sum_random++; random with uniform distribution on [0, 1].

If result larger than 0.5, then sum_accept++;

Do 2 and 3 until sum_accept == 1000;
Just like this. So the code for every code is exactly the same. But when running it, there surely be different for different core. Is this the case SIMD? Or say, will it perform will in GPU?
Thank you.