Révision 220 TrouNoir/TrouNoir.py

TrouNoir.py (revision 220)
1326 1326
                numpy.int32(Line),
1327 1327
                grid=(zImage.shape[0]/32,zImage.shape[1]/32,1),
1328 1328
                block=(32,32,1))
1329
    
1330 1329

  
1330
    Context.synchronize()
1331

  
1331 1332
    compute = time.time()-start_time
1332 1333

  
1333 1334
    cuda.memcpy_dtoh(zImage,zImageCU)
......
1341 1342
    print("Z max @(%i,%i) : %f" % (zMaxPosition[1][0],zMaxPosition[0][0],zImage.max()))
1342 1343
    print("Flux max @(%i,%i) : %f\n" % (fMaxPosition[1][0],fMaxPosition[0][0],fImage.max()))
1343 1344

  
1345
    
1344 1346
    Context.pop()
1345
    
1347

  
1346 1348
    Context.detach()
1347 1349

  
1348 1350
    return(elapsed)

Formats disponibles : Unified diff