Révision 253
| Pi/XPU/PiXPU.py (revision 253) | ||
|---|---|---|
| 937 | 937 |
Duration=OutputCL['Duration'] |
| 938 | 938 |
except: |
| 939 | 939 |
print("Problem with (%i,%i) // computations on OpenCL" % (Blocks,Threads))
|
| 940 |
Rate=NewIterations/Duration |
|
| 940 |
Rate=NewIterations/Duration[-1]
|
|
| 941 | 941 |
print("Itops %i\nLogItops %.2f " % (int(Rate),numpy.log(Rate)/numpy.log(10)))
|
| 942 | 942 |
print("Pi estimation %.8f" % (4./NewIterations*Inside))
|
| 943 | 943 |
|
Formats disponibles : Unified diff