Commit Graph

47 Commits

Author SHA1 Message Date
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
7834c3baae add gavin howard's bc to README 2023-11-02 23:52:56 +00:00
b9f64ec37b savepoint: C perf + readme tweaks 2023-10-15 12:23:26 +01:00
ff29256bdd savepoint, clean README a bit 2023-09-12 16:47:12 +02:00
4e079e9015 move squiggle.c to its own repo, fix readme typo. 2023-08-17 14:19:32 +02:00
3b29ad7e45 more work on squiggle_c 2023-06-26 18:44:04 +01:00
39652b3bfe add squiggle_c beginnings. 2023-06-26 18:05:37 +01:00
82ef16b55d recompile C, static => dynamic compilation, I think 2023-06-10 18:25:47 -06:00
88b627b62a makefile perf tweak 2023-06-03 11:06:44 -06:00
1ff35f6235 Revert "tweak: try using array instead of array of pointers"
it makes code 3x slower
2023-06-03 10:56:09 -06:00
00e6b67bf6 tweak: try using array instead of array of pointers 2023-06-03 10:54:45 -06:00
1436ee4e42 compare using a struct instead of a pointer, reorg 2023-06-03 10:50:06 -06:00
a7bb3bc812 xorshift minor tweaks 2023-06-03 10:02:01 -06:00
c73476e5aa finish xorshift updating. 2023-06-03 04:21:59 -06:00
eaee16f205 finish integrating xorshift rng 2023-06-03 04:08:23 -06:00
80f98830da start adding xorshift prng. 2023-06-03 03:52:04 -06:00
b128793fc3 tweak: add static compilation option 2023-06-03 03:47:58 -06:00
00684179e1 add 0 to 1 float to xorshift implementation 2023-06-03 03:47:10 -06:00
131ea138ae simplify xorshift implementation; struct not needed. 2023-06-03 03:42:30 -06:00
a2e1a48d82 tweak: add xorshift example 2023-06-03 03:38:40 -06:00
58cfe378e5 perf tweaks 2023-06-03 01:42:48 -06:00
d229021625 tweak perf makefile command 2023-06-03 01:37:42 -06:00
a13a042492 tweak: don't use inline functions, add profiling 2023-06-03 01:29:16 -06:00
396170d0a9 rename split_array_get_my_length to split_array_get_length 2023-06-03 01:04:59 -06:00
8b441e104c rename own_length to split_array_length 2023-06-03 01:04:09 -06:00
75b9e38694 use omp reductions to shave off 0.6ms 2023-06-03 01:01:25 -06:00
15e65534e4 normalize & cumsum array in one for loop. 2023-06-03 00:41:09 -06:00
6273ba69a0 make format 2023-06-02 16:37:57 -06:00
fa4311c131 README.md grammar 2023-06-02 16:26:05 -06:00
d2bca155b8 mark to-do as done. 2023-06-02 16:25:03 -06:00
cdec5b6fce remove old code from samples.c 2023-06-02 16:06:17 -06:00
ff3685766b reorganize C code 2023-06-02 16:00:49 -06:00
160e824108 time measuring tweaks. 2023-05-29 19:40:03 -04:00
0bdb94a2d4 remove old files, simplify outline 2023-05-22 19:21:21 -04:00
3e70318e36 add fast output to C. 2023-05-21 12:02:53 -04:00
a84b6b9cc0 tweak C makefile 2023-05-21 01:46:22 -04:00
f0493f6955 clean up compilation of C example 2023-05-20 20:20:43 -04:00
d670b89c4d tweak: cleanup. 2022-12-01 23:57:45 +00:00
071bf00d7a fix: improve warnings for a check which should never fail 2022-12-01 16:12:54 +00:00
57fc886bed feat: More progress
- Add C
- Time the different languages.
- Wrap Squiggle in a js runtime.
2022-12-01 15:04:37 +00:00