Commit Graph

188 Commits

Author SHA1 Message Date
bb1b21bbbb go: abstract sample_parallel into own function 2024-02-17 01:11:43 +01:00
b358c5b16a go: continue improving number of goroutines 2024-02-16 15:19:26 +01:00
aa3b406473 use different seeds for different threads 2024-02-16 15:13:21 +01:00
7c907f173d go: create type alias 2024-02-16 15:03:11 +01:00
76a73f5d13 go: add goroutines usage. But randomness still to be fixed 2024-02-16 14:48:39 +01:00
06438c522d go: add slices manually 2024-02-16 14:40:54 +01:00
14e298c3c9 go: remove prints 2024-02-16 14:17:28 +01:00
5029f67429 go: finish debugging weights code. 2024-02-16 14:15:48 +01:00
d3cb97684a go: add printfs so as to figure out weights bug 2024-02-16 14:10:10 +01:00
8ebe9487a5 go: continue working on mixture code 2024-02-16 13:58:35 +01:00
6417e0aecc add initial go mixture implementation 2024-02-16 13:52:28 +01:00
1f4eb1fec4 wrangle mixture weights in go 2024-02-16 13:43:55 +01:00
fa0065c96e wrangle go types 2024-02-16 13:43:29 +01:00
4544adb3d0 wrangle mixture syntax 2024-02-16 10:10:16 +01:00
651ade8b47 build, check initial times for go 2024-02-16 00:57:22 +01:00
bfb5c75070 add sample_to 2024-02-16 00:42:39 +01:00
c9f6e964ee continue defining simple go API 2024-02-16 00:40:02 +01:00
934c84e195 figure out return values & global var 2024-02-16 00:25:36 +01:00
5a36bec0ba initialize go program 2024-02-16 00:19:09 +01:00
1903a09e97 tweak squiggle.c makefile 2024-02-11 19:45:30 +01:00
841e4eda90 add -march=native flag to C 2024-02-11 19:43:48 +01:00
3fb6eb0c0e update squiggle version 2024-02-11 19:43:28 +01:00
54bd358f7e update time with -march=native flag 2024-02-11 19:24:00 +01:00
dd7c42d952 slight squiggle.c tweaks 2024-01-29 18:37:51 +01:00
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