From a50d776d2cbddcc0f960cdc879f47d3aab91327b Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Fri, 12 Jan 2024 19:08:12 +0100 Subject: [PATCH] add comment on size of the C stack --- squiggle_more.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/squiggle_more.c b/squiggle_more.c index d3a4f63..0b87b7e 100644 --- a/squiggle_more.c +++ b/squiggle_more.c @@ -44,7 +44,7 @@ void sampler_parallel(double (*sampler)(uint64_t* seed), double* results, int n_ // uint64_t** seeds = malloc((size_t)n_threads * sizeof(uint64_t*)); seed_cache_box* cache_box = (seed_cache_box*) malloc(sizeof(seed_cache_box) * (size_t)n_threads); - // seed_cache_box cache_box[n_threads]; + // seed_cache_box cache_box[n_threads]; // we could use the C stack. On normal linux machines, it's 8MB ($ ulimit -s). However, it doesn't quite feel right. srand(1); for (int i = 0; i < n_threads; i++) { // Constraints: