From e56296573c1cd46d553bcc025d20cb2645a4e55b Mon Sep 17 00:00:00 2001 From: Giovanni La Mura Date: Thu, 19 Dec 2024 12:00:42 +0100 Subject: [PATCH] Fix configure argument parsing and openpm options --- build/configure.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build/configure.sh b/build/configure.sh index 0b06c581..36734cf1 100755 --- a/build/configure.sh +++ b/build/configure.sh @@ -76,11 +76,11 @@ function print_help { echo "--disble-gdb Disable GNU debugger. " echo "--disble-ilp64 Disable 64-bit integers. " echo "--disble-offload Disable GPU offloading. " - echo "--disble-omp Disable OpenMP multi-threading. " + echo "--disble-openmp Disable OpenMP multi-threading. " echo "--enable-debug=FEATURE Enable debug output of specified feature. " echo "--enable-fortran Enable FORTRAN compilation (DEFAULT). " echo "--enable-nvtx Enable NVTX profiling tools. " - echo "--enable-omp Enable OpenMP multi-threading (DEFAULT). " + echo "--enable-openmp Enable OpenMP multi-threading (DEFAULT). " echo "--enable-optimize=OPT Use OPT-level compiler optimization. " echo "--enable-refinement Use iterative refinement of matrix inversion. " echo "--enable-shared Use shared libraries (default is static). " @@ -132,10 +132,10 @@ EOF # Script execution num_args=${#@} -args="$@" +declare -a args=("$@") # Argument parsing section -for arg in $args +for arg in "${args[@]}" do cut_arg=$(echo $arg | cut -d '=' -f1) if [ "x$cut_arg" = "x--help" ]; then @@ -151,7 +151,7 @@ do BUILDFORTRAN="no" elif [ "x$cut_arg" = "x--disable-offload" ]; then OFFLOAD="no" - elif [ "x$cut_arg" = "x--disable-omp" ]; then + elif [ "x$cut_arg" = "x--disable-openmp" ]; then OMPMODE="no" elif [ "x$cut_arg" = "x--enable-debug" ]; then dbg_feature=$(echo $arg | cut -d '=' -f2) @@ -169,7 +169,7 @@ do BUILDFORTRAN="yes" elif [ "x$cut_arg" = "x--enable-nvtx" ]; then NVTXFLAGS=" -DUSE_NVTX" - elif [ "x$cut_arg" = "x--enable-omp" ]; then + elif [ "x$cut_arg" = "x--enable-openmp" ]; then OMPMODE="yes" elif [ "x$cut_arg" = "x--enable-optimize" ]; then opt_level=$(echo $arg | cut -d '=' -f2) -- GitLab