Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. %matplotlib inline
  2. import numpy as np
  3. import matplotlib.pyplot as plt
  4. import datetime
  5.  
  6. # length of run, in days
  7. SimulatedDays = 2
  8. # Cori-Haswell data
  9. data = np.array([
  10. [ 64 , 124.154 , 256 , 81.015 ],
  11. [ 128 , 63.166 , 512 , 41.254 ],
  12. [ 256 , 36.443 , 1024 , 24.515 ]
  13. ])
  14. ice_cores=data[:,0]
  15. ocn_cores=data[:,2]
  16. total_cores = ice_cores + ocn_cores
  17. ice_WCtime=data[:,1]
  18. ocn_WCtime=data[:,3]
  19. total_WCtime = ice_WCtime + ocn_WCtime
  20. SYPD = SimulatedDays/365. /total_WCtime*86300
  21. plt.plot(total_cores,SYPD,'s-')
  22. # Cori-KNL data
  23. data = np.array([
  24. [ 64 , 541.794 , 256 , 224.114 ],
  25. [ 128 , 281.564 , 512 , 121.136 ],
  26. [ 256 , 157.960 , 1024 , 72.075 ],
  27. [ 512 , 87.038 , 2048 , 42.514 ],
  28. ])
  29. ice_cores=data[:,0]
  30. ocn_cores=data[:,2]
  31. total_cores = ice_cores + ocn_cores
  32. ice_WCtime=data[:,1]
  33. ocn_WCtime=data[:,3]
  34. total_WCtime = ice_WCtime + ocn_WCtime
  35. SYPD = SimulatedDays/365. /total_WCtime*86300
  36. plt.plot(total_cores,SYPD,'s-')
  37. plt.legend(['Cori-Haswell','Cori-KNL'],loc='upper right')
  38. plt.xlabel('cores')
  39. plt.ylabel('SYPD, no i/o')
  40. date=datetime.datetime.now().strftime("%Y-%m-%d")
  41. plt.title('ACME performance, EC60to30wLI, G case, '+date)
  42. plt.grid(True)
  43. plt.savefig("ACME_performance.png")
  44. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement