Skip to content

Change FFT memory Error to Warning? #1332

Description

@sidneymau

Currently, GalSim will throw an error if the requested FFT is too large (cf.

GalSim/galsim/gsobject.py

Lines 1970 to 1971 in 4c04a1e

if Nk > self.gsparams.maximum_fft_size:
raise GalSimFFTSizeError("drawFFT requires an FFT that is too large.", Nk)
).

The default value for this is quite low (something like 2GB) and this often results in many jobs crashing and hanging. Every time I configure this to be larger, I still end up finding some object that needs more memory resulting in another crash. It would be helpful for this to be changed into a warning rather than an error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    exceptions/warningsRelated to exceptions or warningsoptimization/performanceRelated to the speed and/or memory consumption of some aspect of the code

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions