diff options
Diffstat (limited to 'Source/main.cpp')
-rw-r--r-- | Source/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/main.cpp b/Source/main.cpp index ee0db6960..4bbdce2da 100644 --- a/Source/main.cpp +++ b/Source/main.cpp @@ -34,6 +34,11 @@ int main(int argc, char* argv[]) amrex::Initialize(argc,argv); + // in Debug mode, we need a larger stack limit than usual bc of the parser. +#if defined(AMREX_USE_CUDA) && defined(AMREX_DEBUG) + AMREX_CUDA_SAFE_CALL(cudaDeviceSetLimit(cudaLimitStackSize, 20*1024)); +#endif + ConvertLabParamsToBoost(); CheckGriddingForRZSpectral(); |