Révision 86

Pi/GPU/Pi-GPU.py (revision 86)
3 3
#
4 4
# Pi-by-MonteCarlo using PyCUDA/PyOpenCL
5 5
#
6
# CC BY-NC-SA 2011 : <emmanuel.quemener@ens-lyon.fr> 
6
# CC BY-NC-SA 2011 : Emmanuel QUEMENER <emmanuel.quemener@gmail.com> 
7
# Cecill v2 : Emmanuel QUEMENER <emmanuel.quemener@gmail.com>
7 8
#
8 9
# Thanks to Andreas Klockner for PyCUDA:
9 10
# http://mathema.tician.de/software/pycuda
11
# Thanks to Andreas Klockner for PyOpenCL:
12
# http://mathema.tician.de/software/pyopencl
10 13
# 
11 14

  
12 15
# 2013-01-01 : problems with launch timeout
......
645 648
  # Fit is True to print the curves
646 649
  Fit=False
647 650
  # Marsaglia RNG
648
  RNG='KISS'
651
  RNG='MWC'
649 652
  # Value type : INT32, INT64, FP32, FP64
650
  ValueType='INT32'
653
  ValueType='FP32'
651 654
  
652 655
  try:
653 656
    opts, args = getopt.getopt(sys.argv[1:],"hocfa:g:p:i:s:e:t:r:d:m:v:",["alu=","gpustyle=","parastyle=","iterations=","jobstart=","jobend=","jobstep=","redo=","device=","marsaglia=","valuetype="])

Formats disponibles : Unified diff