diff --git a/xobjects/context_cupy.py b/xobjects/context_cupy.py index bd65115..715040b 100644 --- a/xobjects/context_cupy.py +++ b/xobjects/context_cupy.py @@ -466,6 +466,10 @@ def build_kernels( *extra_compile_args, *include_flags, "-DXO_CONTEXT_CUDA", + # Skip heavy optimizations (e.g. involving cloning), + # which for us don't translate to a lot of runtime gains, + # but consume a lot of compile time and memory: + "--Ofast-compile=min", ) module = cupy.RawModule(