Changes in sasmodels/compare_many.py [b514adf:cd3dba0] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/compare_many.py
rb514adf rcd3dba0 57 57 num_good = 0 58 58 first = True 59 max_diff = 060 59 for k in range(N): 61 60 print >>sys.stderr, name, k … … 74 73 columns.extend(stats) 75 74 labels.append('GPU single') 76 max_diff = max(max_diff, stats[0]) 77 good = good and (stats[0] < 5e-5) 75 good = good and (stats[0] < 1e-14) 78 76 if 0 and environment().has_double: 79 77 gpu_double_value = trymodel(eval_opencl, dtype='double', cutoff=cutoff) … … 81 79 columns.extend(stats) 82 80 labels.append('GPU double') 83 max_diff = max(max_diff, stats[0]) 84 good = good and (stats[0] < 1e-12) 81 good = good and (stats[0] < 1e-14) 85 82 if 1: 86 83 cpu_double_value = trymodel(eval_ctypes, dtype='double', cutoff=cutoff) … … 88 85 columns.extend(stats) 89 86 labels.append('CPU double') 90 max_diff = max(max_diff, stats[0]) 91 good = good and (stats[0] < 1e-12) 87 good = good and (stats[0] < 1e-14) 92 88 if 0: 93 89 stats = get_stats(cpu_double_value, gpu_single_value, index) 94 90 columns.extend(stats) 95 91 labels.append('single/double') 96 max_diff = max(max_diff, stats[0]) 97 good = good and (stats[0] < 5e-5) 92 good = good and (stats[0] < 1e-14) 98 93 99 94 columns += [v for _,v in sorted(pars_i.items())] … … 105 100 else: 106 101 print(("%d,"%seed)+','.join("%g"%v for v in columns)) 107 print '" good","%d/%d","max diff",%g'%(num_good, N, max_diff)102 print '"%d/%d good"'%(num_good, N) 108 103 109 104
Note: See TracChangeset
for help on using the changeset viewer.