Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare_many.py

    rb514adf rcd3dba0  
    5757    num_good = 0 
    5858    first = True 
    59     max_diff = 0 
    6059    for k in range(N): 
    6160        print >>sys.stderr, name, k 
     
    7473            columns.extend(stats) 
    7574            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) 
    7876        if 0 and environment().has_double: 
    7977            gpu_double_value = trymodel(eval_opencl, dtype='double', cutoff=cutoff) 
     
    8179            columns.extend(stats) 
    8280            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) 
    8582        if 1: 
    8683            cpu_double_value = trymodel(eval_ctypes, dtype='double', cutoff=cutoff) 
     
    8885            columns.extend(stats) 
    8986            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) 
    9288        if 0: 
    9389            stats = get_stats(cpu_double_value, gpu_single_value, index) 
    9490            columns.extend(stats) 
    9591            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) 
    9893 
    9994        columns += [v for _,v in sorted(pars_i.items())] 
     
    105100        else: 
    106101            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) 
    108103 
    109104 
Note: See TracChangeset for help on using the changeset viewer.