Révision 239 Pi/XPU/PiXpuThreads.py

PiXpuThreads.py (revision 239)
76 76
    Fit=False
77 77
    # Marsaglia RNG
78 78
    RNG='MWC'
79
    # Seeds
80
    Seeds=110271,101008
79 81
    # Value type : INT32, INT64, FP32, FP64
80 82
    ValueType='FP32'
81 83
    # Inside based on If
......
194 196
            for platform in cl.get_platforms():
195 197
                for device in platform.get_devices():
196 198
                    #deviceType=cl.device_type.to_string(device.type)
197
                    deviceType="*PU"
199
                    deviceType="xPU"
198 200
                    print("Device #%i from %s of type %s : %s" % (Id,platform.vendor.lstrip().rstrip(),deviceType,device.name.lstrip().rstrip()))
199 201

  
200 202
                    if Id in Devices:
......
241 243
            time_start=time.time()
242 244

  
243 245
            for Device in Devices:
246
                DeltaD=Device-min(Devices)+1
247
                DeltaS=(DeltaD-1)*524287
244 248
                InputCL={}
245 249
                InputCL['Iterations']=IterationsMP
246 250
                InputCL['Steps']=1
......
248 252
                InputCL['Threads']=Threads
249 253
                InputCL['Device']=Device
250 254
                InputCL['RNG']=RNG
255
                InputCL['Seeds']=numpy.uint32(Seeds[0]*DeltaD+DeltaS),numpy.uint32(Seeds[1]*DeltaD+DeltaS)
251 256
                InputCL['ValueType']=ValueType
252 257
                InputCL['IfThen']=IfThen
253 258
                if GpuStyle=='CUDA':

Formats disponibles : Unified diff