From cb17bafbae07565a725827eb0f1fe7e3967c9ebd Mon Sep 17 00:00:00 2001 From: Ken Raffenetti Date: Thu, 7 Nov 2024 16:15:19 -0600 Subject: [PATCH] backend: Default nesting levels to 2 This significantly reduces the build time and binary size, which is critical for large-scale. Signed-off-by: Ken Raffenetti --- src/backend/cuda/genpup.py | 2 +- src/backend/hip/genpup.py | 2 +- src/backend/seq/genpup.py | 2 +- src/backend/ze/genpup.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backend/cuda/genpup.py b/src/backend/cuda/genpup.py index f50ed06e..e7a87660 100755 --- a/src/backend/cuda/genpup.py +++ b/src/backend/cuda/genpup.py @@ -230,7 +230,7 @@ def generate_host_function(b, darray): if __name__ == '__main__': ##### parse user arguments parser = argparse.ArgumentParser() - parser.add_argument('--pup-max-nesting', type=int, default=3, help='maximum nesting levels to generate') + parser.add_argument('--pup-max-nesting', type=int, default=2, help='maximum nesting levels to generate') args = parser.parse_args() if (args.pup_max_nesting < 0): parser.print_help() diff --git a/src/backend/hip/genpup.py b/src/backend/hip/genpup.py index 48ba7d9e..794cc0a3 100755 --- a/src/backend/hip/genpup.py +++ b/src/backend/hip/genpup.py @@ -230,7 +230,7 @@ def generate_host_function(b, darray): if __name__ == '__main__': ##### parse user arguments parser = argparse.ArgumentParser() - parser.add_argument('--pup-max-nesting', type=int, default=3, help='maximum nesting levels to generate') + parser.add_argument('--pup-max-nesting', type=int, default=2, help='maximum nesting levels to generate') args = parser.parse_args() if (args.pup_max_nesting < 0): parser.print_help() diff --git a/src/backend/seq/genpup.py b/src/backend/seq/genpup.py index ab67e526..04c3d983 100755 --- a/src/backend/seq/genpup.py +++ b/src/backend/seq/genpup.py @@ -217,7 +217,7 @@ def generate_kernels(b, darray, blklen): if __name__ == '__main__': ##### parse user arguments parser = argparse.ArgumentParser() - parser.add_argument('--pup-max-nesting', type=int, default=3, help='maximum nesting levels to generate') + parser.add_argument('--pup-max-nesting', type=int, default=2, help='maximum nesting levels to generate') args = parser.parse_args() if (args.pup_max_nesting < 0): parser.print_help() diff --git a/src/backend/ze/genpup.py b/src/backend/ze/genpup.py index d5170cb8..f77f34da 100755 --- a/src/backend/ze/genpup.py +++ b/src/backend/ze/genpup.py @@ -345,7 +345,7 @@ def generate_define_kernels(b, darray): if __name__ == '__main__': ##### parse user arguments parser = argparse.ArgumentParser() - parser.add_argument('--pup-max-nesting', type=int, default=3, help='maximum nesting levels to generate') + parser.add_argument('--pup-max-nesting', type=int, default=2, help='maximum nesting levels to generate') args = parser.parse_args() if (args.pup_max_nesting < 0): parser.print_help()