title: compute an approximation of pi using cuda in python
body: <p>I would like to use this simple formula to compute an approximation of pi :
  <a href="https://i.stack.imgur.com/FieyU.png" rel="nofollow noreferrer">pi approx formula</a></p>
  
  <p>Here is my code :</p>
  
  <pre><code>def pi(iteration):
      pi = 0.0
      sign = 1
      b = 1.0
  
      for i in range(iteration):
          pi += 4.0*sign/b
  
          b += 2
          sign *= -1
  
      print pi
  
  pi(100000)
  </code></pre>
  
  <p>How to make this code be computed by the GPU?</p>