Changeset ce27e21 in sasmodels for compare-new.py
- Timestamp:
- Aug 24, 2014 7:18:14 PM (10 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 1780d59
- Parents:
- 14de349
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
compare-new.py
r14de349 rce27e21 48 48 gpu = model.theory() 49 49 gpu_time = toc()*1000./Ngpu 50 print "ocl t=%.1f ms "%gpu_time50 print "ocl t=%.1f ms, intensity=%.0f"%(gpu_time, sum(gpu[~np.isnan(gpu)])) 51 51 #print max(gpu), min(gpu) 52 52 … … 61 61 print "dll t=%.1f ms"%cpu_time 62 62 63 elif 1: # Hack to check new vs old for GpuCylinder63 elif 0: # Hack to check new vs old for GpuCylinder 64 64 from Models.code_cylinder_f import GpuCylinder as oldgpu 65 65 from sasmodel import SasModel … … 78 78 cpu = cpumodel.evalDistribution([data.qx_data, data.qy_data]) 79 79 cpu_time = toc()*1000./Ncpu 80 print "sasview t=%.1f ms "%cpu_time80 print "sasview t=%.1f ms, intensity=%.0f"%(cpu_time, sum(cpu[model.index])) 81 81 82 82 if Ngpu > 0 and Ncpu > 0:
Note: See TracChangeset
for help on using the changeset viewer.