Commit Graph

164 Commits

Author SHA1 Message Date
3a9a290ba8 update squiggle.c to avoid cache sharing 2024-01-12 17:02:10 +01:00
b208879e45 update squiggle.c with speedup after avoiding conflicting cache hits 2024-01-12 00:25:58 +01:00
fb2c471172 update squiggle.c 2023-11-30 00:04:24 +00:00
546a9ee0b5 update squiggle.c 2023-11-30 00:02:02 +00:00
825336ef0a tweak: fix parallelism in squiggle.c 2023-11-27 14:16:38 +00:00
06e78cb079 don't download whole git dir for squiggle_c 2023-11-23 14:39:25 +00:00
05b1b99561 correct squiggle time 2023-11-20 22:57:33 +00:00
a5e0da8cd4 fix squiggle path to use correct method 2023-11-19 20:40:12 +00:00
f458ff8004 add small squiggle_c makefile option, give some thoughts on squiggle(py) 2023-11-19 19:27:22 +00:00
4f32ccbd21 update squiggle.c, SquigglePy and squiggle-og to latest versions
also rationalize makefiles
2023-11-19 18:11:41 +00:00
a48b15f171 reorg, get parsimonious paralellism working, to go into squiggle.c 2023-11-18 23:25:39 +00:00
9a56a63c61 fix: omp typo, which makes this now go faster 2023-11-18 23:01:29 +00:00
1d5e0a6a7f Revert "tweak: savepoint; test hypothesis over previous stuff."
This reverts commit 1bc7c90fcf.
2023-11-18 22:59:48 +00:00
1bc7c90fcf tweak: savepoint; test hypothesis over previous stuff. 2023-11-18 22:59:03 +00:00
3d3a3f0045 tweak: try simplest version, but notice it doesn't work
$ make time-linux
Requires /bin/time, found on GNU/Linux systems

Running 100x and taking avg time: OMP_NUM_THREADS=1 out/samples
Time using 1 thread: 34.50ms

Running 100x and taking avg time: OMP_NUM_THREADS=2 out/samples
Time using 2 threads: 34.60ms

Running 100x and taking avg time: OMP_NUM_THREADS=4 out/samples
Time for 4 threads: 32.00ms

Running 100x and taking avg time: OMP_NUM_THREADS=8 out/samples
Time using 8 threads: 30.40ms

Running 100x and taking avg time: OMP_NUM_THREADS=16 out/samples
Time using 16 threads: 30.80ms
2023-11-18 22:50:03 +00:00
2a39a04c69 add desiderata split_array_refactor 2023-11-18 20:10:29 +00:00
2a9d3bf135 factorize paralellization in C code out
- Conceptually clearer
- Allows for composing multiple mixtures together
- Considering incorporating it into squiggle.c
2023-11-18 19:43:10 +00:00
9a60392849 reorg C experiments, and start factoring out paralellization functions 2023-11-18 19:22:28 +00:00
707f3d744b fix: README tweaks 2023-11-07 22:31:28 +00:00
7834c3baae add gavin howard's bc to README 2023-11-02 23:52:56 +00:00
5473a6aeda add bc version without comments or extraneous newlines. 2023-11-02 23:40:05 +00:00
90b8804884 arrive at working version of squiggle.bc 2023-11-02 23:34:48 +00:00
8675d98784 fix the base of the log for squiggle.bc 2023-11-02 23:26:06 +00:00
249a1ff434 initial attempt on bc
buggy because wrong base for log, but it's a start
2023-11-02 23:24:36 +00:00
1a3099b7e4 add squiggle.bc 2023-11-02 22:30:23 +00:00
b9f64ec37b savepoint: C perf + readme tweaks 2023-10-15 12:23:26 +01:00
c19738709a update README 2023-10-15 02:29:29 +01:00
50fb88db7c tweaks on ocaml match 2023-10-15 02:25:59 +01:00
3befb4af4d feat: move to using an array for samples 2023-10-15 02:21:45 +01:00
cf76c92803 add profiling for ocaml 2023-10-15 02:08:42 +01:00
2d5378fd53 tweak: in ocaml, do the unwinding and the sum at the same time 2023-10-15 01:58:03 +01:00
37a2dab610 recompile ocaml with flamda mode, update times table 2023-10-15 01:46:52 +01:00
608cbb2f68 add initial OCaml stats 2023-10-15 01:19:56 +01:00
25a27f7fc4 fix: add tail recursion 2023-10-15 01:14:41 +01:00
7ce4658d30 fun: save on stack overflow
just reduce the num of samples to avoid it
2023-10-15 01:00:47 +01:00
13194bc3ca fix sampling calculation bug 2023-10-15 00:59:20 +01:00
710eb4267b finally fix types, but get numeric error 2023-10-15 00:53:58 +01:00
4708c6f198 move to use expressive results instead of Some/None 2023-10-15 00:52:33 +01:00
4959255947 get compiler to give me a cool missing match case error 2023-10-15 00:45:01 +01:00
4c4d053ab9 print mean at the end 2023-10-15 00:44:20 +01:00
3950946d68 tweak: move from array to list 2023-10-15 00:33:59 +01:00
351f4c584d savepoint before switching back to lists 2023-10-15 00:17:52 +01:00
4983699308 tweak: delete higher level match in mixture function 2023-10-15 00:01:05 +01:00
ce119253b7 tweak: give up on piping to Some 2023-10-14 23:59:40 +01:00
90e48d2249 savepoint while wrangling types. 2023-10-14 23:48:58 +01:00
fb21e4baa6 savepoint while wrangling types 2023-10-14 23:48:11 +01:00
23bd623b66 reformat, move to using arrays instead of list. 2023-10-14 23:31:58 +01:00
fa73c33c27 savepoint, too tired. 2023-10-14 20:57:21 +01:00
2cddf557bf start adding mixture function 2023-10-14 20:50:25 +01:00
ffec4663fc start populating samplers 2023-10-14 20:12:42 +01:00