vendredi 24 novembre 2017

Parallel random numbers julia

Ok, this is a very basic question but I don't have a clue where to start. I have code to generate a random number drawn from an unusual distribution. It turns out that drawing one random number from this distribution takes about 5 minutes (assume that the code is adequate since this is not the point of my question). Let's say that this is encoded in the function unusual_rand, so that a random number x is generated via x = unusual_rand()

I want to use my 16 cores and call the function in each core say N times and then save the N x 16 numbers in an array. How can this be done?




Aucun commentaire:

Enregistrer un commentaire