File tree Expand file tree Collapse file tree 11 files changed +16
-14
lines changed Expand file tree Collapse file tree 11 files changed +16
-14
lines changed Original file line number Diff line number Diff line change 11#lang info
22
33(define collection "egg-herbie " )
4- (define version "1.6 " )
4+ (define version "2.0 " )
55
66(define pkg-desc "Racket bindings for simplifying math expressions using egg " )
77(define pkg-authors
Original file line number Diff line number Diff line change 122122 (if (equal? out "" ) default out))
123123 default))
124124
125- (define *herbie-version* "1.6 " )
125+ (define *herbie-version* "2.0 " )
126126
127127(define *hostname* (run-command "hostname " ))
128128
Original file line number Diff line number Diff line change 4646 #:unless (null? cost-accuracy))
4747 (match cost-accuracy
4848 [(list (list _ initial-accuracy) _ _ ) initial-accuracy]))])
49- (exact->inexact (- 1 (/ initial-accuracies-sum maximum-accuracy)))))
49+ (if (> maximum-accuracy 0 )
50+ (exact->inexact (- 1 (/ initial-accuracies-sum maximum-accuracy)))
51+ 1.0 )))
5052 (define rescaled
5153 (for/list ([cost-accuracy (in-list cost-accuracies)]
5254 #:unless (null? cost-accuracy))
Original file line number Diff line number Diff line change 11#lang info
22
33(define collection "herbie " )
4- (define version "1.6 " )
4+ (define version "2.0 " )
55
66;; Packaging information
77
2828 "profile-lib "
2929 "rackunit-lib "
3030 "web-server-lib "
31- ("egg-herbie " #:version "1.6 " )
31+ ("egg-herbie " #:version "2.0 " )
3232 ("rival " #:version "1.7 " )
3333 ("fpbench " #:version "2.0.3 " )))
3434
Original file line number Diff line number Diff line change 3535 ["interactive.js "
3636 (make-interactive-js result out ctx)]
3737 ["timeline.html "
38- (make-timeline (test-name test) (job-result-timeline result) out)]
38+ (make-timeline (test-name test) (job-result-timeline result) out #:path " .. " )]
3939 ["timeline.json "
4040 (write-json (job-result-timeline result) out)]
4141 ["points.json "
Original file line number Diff line number Diff line change @@ -228,10 +228,8 @@ section { display: flow-root; }
228228
229229/* Process / debug info */
230230
231- # process-info { background : # ddd ; }
231+ # process-info { background : # ddd ; padding : 0 ; }
232232# process-info p .header { font-size : 110% ; padding : 1em 1em .5em ; margin : 0 ; }
233- # process-info p .header .attachment { float : right; margin : 0 0 0 1em ; }
234- # process-info > p { margin : 1em .75em 0 ; }
235233
236234.timeline {
237235 height : 2em ; border : 1px solid # 888 ; border-width : 1px 0px ; margin-bottom : 1em ;
Original file line number Diff line number Diff line change 7474
7575 (call-with-output-file (build-path dir "timeline.html " )
7676 #:exists 'replace
77- (λ (out) (make-timeline "Herbie run " timeline out #:info info)))
77+ (λ (out) (make-timeline "Herbie run " timeline out #:info info #:path " . " )))
7878
7979 ; Delete old files
8080 (let* ([expected-dirs (map string->path (filter identity (map table-row-link (report-info-tests info))))]
Original file line number Diff line number Diff line change 88
99;; This first part handles timelines for a single Herbie run
1010
11- (define (make-timeline name timeline out #:info [info #f ])
11+ (define (make-timeline name timeline out #:info [info #f ] #:path [path " . " ] )
1212 (fprintf out "<!doctype html>\n " )
1313 (write-xexpr
1414 `(html
2020 (body
2121 ,(render-menu
2222 (~a name)
23+ #:path path
2324 (if info
2425 `(("Report " . "index.html " ))
2526 `(("Details " . "graph.html " ))))
3233 (-> timeline? xexpr?)
3334 (define time (apply + (map (curryr dict-ref 'time ) timeline)))
3435 `(section ([id "process-info " ])
35- (h1 "Details " )
3636 (p ((class "header " ))
3737 "Time bar (total: " (span ((class "number " )) ,(format-time time )) ") " )
3838 (div ((class "timeline " ))
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ <h2 id="batch">Batch processing FPCores</h2>
7272 1/3 [ 0.882s] 30→ 0 Cancel like terms
7373Warning: 24.7% of points produce a very large (infinite) output.
7474You may want to add a precondition.
75- See < a href ="https://herbie.uwplse.org/doc/1.6 /faq.html#inf-points "> <https://herbie.uwplse.org/doc/1.6 /faq.html#inf-points></ a > for more.
75+ See < a href ="https://herbie.uwplse.org/doc/2.0 /faq.html#inf-points "> <https://herbie.uwplse.org/doc/2.0 /faq.html#inf-points></ a > for more.
7676 2/3 [ 1.721s] 29→ 0 Expanding a square
7777 3/3 [ 2.426s] 0→ 0 Commute and associate</ pre >
7878
Original file line number Diff line number Diff line change 1- 1.6
1+ 2.0
You can’t perform that action at this time.
0 commit comments