flatironinstitute / FMM3D

Flatiron Institute Fast Multipole Libraries --- This codebase is a set of libraries to compute N-body interactions governed by the Laplace and Helmholtz equations, to a specified precision, in three dimensions, on a multi-core shared-memory machine.
https://fmm3d.readthedocs.io
Other
93 stars 36 forks source link

stack size linker options on MacOS #4

Closed oneilm closed 4 years ago

oneilm commented 5 years ago

For larger multicore problems, my experience has been that the stack size needs to be set as a linker option on MacOS (since the stack size cannot be set to unlimited in the terminal on MacOS). For example, with the flag:

-Wl,-stack_size,0x40000000

This requires changing the macos .inc file, or adding an LDFLAGS variable. Or is this not necessary using the current make file configuration?

mrachh commented 4 years ago

Hi Mike, This is not necessary, as there is very little statically allocated memory in the code.