Index: PiXPU.py
===================================================================
--- PiXPU.py	(revision 238)
+++ PiXPU.py	(revision 239)
@@ -428,6 +428,7 @@
     RNG=InputCU['RNG']
     ValueType=InputCU['ValueType']
     TestType=InputCU['IfThen']
+    Seeds=InputCU['Seeds']
     
     Marsaglia,Computing,Test=DictionariesAPI()
     
@@ -479,10 +480,8 @@
         try:
             MetropolisHybridCU(circleCU,
                                numpy.uint64(iterationsCU),
-                               numpy.uint32(110271),
-                               numpy.uint32(101008),
-                               # numpy.uint32(nprnd(2**32)),
-                               # numpy.uint32(nprnd(2**32)),
+                               numpy.uint32(Seeds[0]),
+                               numpy.uint32(Seeds[1]),
                                grid=(blocks,1),block=(threads,1,1))
         except:
             print("Crash during CUDA call")
@@ -514,9 +513,10 @@
     RNG=InputCL['RNG']  
     ValueType=InputCL['ValueType']
     TestType=InputCL['IfThen']
+    Seeds=InputCL['Seeds']
 
     Marsaglia,Computing,Test=DictionariesAPI()
-    
+
     # Initialisation des variables en les CASTant correctement
     Id=0
     HasXPU=False
@@ -527,12 +527,13 @@
                 print("CPU/GPU selected: ",device.name.lstrip())
                 HasXPU=True
             Id+=1
+            print(Id)
 
     if HasXPU==False:
         print("No XPU #%i found in all of %i devices, sorry..." % (Device,Id-1))
-        sys.exit()              
+        sys.exit()           
 
-        
+    print(XPU)
     # Je cree le contexte et la queue pour son execution
     try:
         ctx = cl.Context(devices=[XPU])
@@ -562,18 +563,14 @@
             CLLaunch=MetropolisCL.MainLoopGlobal(queue,(blocks,),None,
                                                  circleCL,
                                                  numpy.uint64(iterationsCL),
-                                                 numpy.uint32(110271),
-                                                 numpy.uint32(101008))
-                                                 # numpy.uint32(nprnd(2**32)),
-                                                 # numpy.uint32(nprnd(2**32)))
+                                                 numpy.uint32(Seeds[0]),
+                                                 numpy.uint32(Seeds[1]))
         else:
             CLLaunch=MetropolisCL.MainLoopHybrid(queue,(jobs,),(threads,),
                                                  circleCL,
                                                  numpy.uint64(iterationsCL),
-                                                 numpy.uint32(110271),
-                                                 numpy.uint32(101008))
-                                                 # numpy.uint32(nprnd(2**32)),
-                                                 # numpy.uint32(nprnd(2**32)))
+                                                 numpy.uint32(Seeds[0]),
+                                                 numpy.uint32(Seeds[1]))
 
         CLLaunch.wait()
         cl.enqueue_copy(queue, circle, circleCL).wait()
@@ -704,6 +701,8 @@
     RNG='MWC'
     # Value type : INT32, INT64, FP32, FP64
     ValueType='FP32'
+    # Seeds for RNG
+    Seeds=110271,101008
 
     HowToUse='%s -o (Out of Core Metrology) -c (Print Curves) -k (Case On IfThen) -d <DeviceId> -g <CUDA/OpenCL> -i <Iterations> -b <BlocksBegin> -e <BlocksEnd> -s <BlocksStep> -f <ThreadsFirst> -l <ThreadsLast> -t <ThreadssTep> -r <RedoToImproveStats> -m <SHR3/CONG/MWC/KISS> -v <INT32/INT64/FP32/FP64>'
     
@@ -874,6 +873,7 @@
                         InputCU['Threads']=Threads
                         InputCU['Device']=Devices[0]
                         InputCU['RNG']=RNG
+                        InputCU['Seeds']=Seeds
                         InputCU['ValueType']=ValueType                    
                         InputCU['IfThen']=IfThen                    
                         OutputCU=MetropolisCuda(InputCU)
@@ -891,6 +891,7 @@
                         InputCL['Threads']=Threads
                         InputCL['Device']=Devices[0]
                         InputCL['RNG']=RNG
+                        InputCL['Seeds']=Seeds
                         InputCL['ValueType']=ValueType
                         InputCL['IfThen']=IfThen                    
                         OutputCL=MetropolisOpenCL(InputCL)
@@ -911,6 +912,7 @@
                     InputCU['Threads']=Threads
                     InputCU['Device']=Devices[0]
                     InputCU['RNG']=RNG
+                    InputCU['Seeds']=Seeds
                     InputCU['ValueType']=ValueType
                     InputCU['IfThen']=IfThen                    
                     OutputCU=MetropolisCuda(InputCU)
@@ -929,6 +931,7 @@
                     InputCL['Threads']=Threads
                     InputCL['Device']=Devices[0]
                     InputCL['RNG']=RNG
+                    InputCL['Seeds']=Seeds
                     InputCL['ValueType']=ValueType
                     InputCL['IfThen']=IfThen
                     OutputCL=MetropolisOpenCL(InputCL)
@@ -940,7 +943,6 @@
             Rate=NewIterations/Duration
             print("Pi estimation %.8f" % (4./NewIterations*Inside))
 
-            
         avgD=numpy.append(avgD,numpy.average(Duration))
         medD=numpy.append(medD,numpy.median(Duration))
         stdD=numpy.append(stdD,numpy.std(Duration))
