Skip to content

Commit

Permalink
fix: add Wextra to debugging compiler flags
Browse files Browse the repository at this point in the history
  • Loading branch information
yoctoyotta1024 committed May 7, 2024
1 parent 6ce4a1d commit b673d15
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
7 changes: 1 addition & 6 deletions roughpaper/build_compile_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ gcc="/sw/spack-levante/gcc-11.2.0-bcn7mb/bin/gcc"
CC=${gcc} # C
CXX=${gxx} # C++

CMAKE_CXX_FLAGS="-Werror -Wall -pedantic -g -gdwarf-4 -O0 -mpc64" # correctness and debugging (note -gdwarf-4 not possible for nvc++)
CMAKE_CXX_FLAGS="-Werror -Wall -Wextra -pedantic -g -gdwarf-4 -O0 -mpc64" # correctness and debugging (note -gdwarf-4 not possible for nvc++)
# CMAKE_CXX_FLAGS="-Werror -Wall -pedantic -O3" # performance
### ---------------------------------------------------- ###

Expand All @@ -51,11 +51,6 @@ CUDA_ROOT="/sw/spack-levante/nvhpc-23.9-xpxqeo/Linux_x86_64/23.9/cuda/"
NVCC_WRAPPER_DEFAULT_COMPILER=${gxx}
### ---------------------------------------------------- ###

### ------------ choose extra compiler flags ----------- ###
CMAKE_CXX_FLAGS="-Wall -pedantic -g -gdwarf-4 -O0 -mpc64" # correctness and debugging (note -gdwarf-4 not possible for nvc++)
#CMAKE_CXX_FLAGS="-Werror -Wall -pedantic -O3" # performance
### ---------------------------------------------------- ###

### ------------ choose Kokkos configuration ----------- ###
# flags for serial kokkos
kokkosflags="-DKokkos_ARCH_NATIVE=ON -DKokkos_ARCH_AMPERE80=ON -DKokkos_ENABLE_SERIAL=ON"
Expand Down
2 changes: 1 addition & 1 deletion scripts/bash/build_cleo_cuda_openmp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ path2build=$2 # get from command line argument
CC=${gcc} # C
CXX=${gxx} # C++

# CMAKE_CXX_FLAGS="-Werror -Wall -pedantic -g -gdwarf-4 -O0 -mpc64" # correctness and debugging (note -gdwarf-4 not possible for nvc++)
# CMAKE_CXX_FLAGS="-Werror -Wall -Wextra -pedantic -g -gdwarf-4 -O0 -mpc64" # correctness and debugging (note -gdwarf-4 not possible for nvc++)
CMAKE_CXX_FLAGS="-Werror -Wall -pedantic -O3" # performance
### ---------------------------------------------------- ###

Expand Down
2 changes: 1 addition & 1 deletion scripts/bash/build_cleo_openmp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ path2build=$2 # get from command line argument
CC=${gcc} # C
CXX=${gxx} # C++

# CMAKE_CXX_FLAGS="-Werror -Wall -pedantic -g -gdwarf-4 -O0 -mpc64" # correctness and debugging (note -gdwarf-4 not possible for nvc++)
# CMAKE_CXX_FLAGS="-Werror -Wall -Wextra -pedantic -g -gdwarf-4 -O0 -mpc64" # correctness and debugging (note -gdwarf-4 not possible for nvc++)
CMAKE_CXX_FLAGS="-Werror -Wall -pedantic -O3" # performance
### ---------------------------------------------------- ###

Expand Down
2 changes: 1 addition & 1 deletion scripts/bash/build_cleo_serial.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ path2build=$2 # get from command line argument
CC=${gcc} # C
CXX=${gxx} # C++

# CMAKE_CXX_FLAGS="-Werror -Wall -pedantic -g -gdwarf-4 -O0 -mpc64" # correctness and debugging (note -gdwarf-4 not possible for nvc++)
# CMAKE_CXX_FLAGS="-Werror -Wall -Wextra -pedantic -g -gdwarf-4 -O0 -mpc64" # correctness and debugging (note -gdwarf-4 not possible for nvc++)
CMAKE_CXX_FLAGS="-Werror -Wall -pedantic -O3" # performance
### ---------------------------------------------------- ###

Expand Down

0 comments on commit b673d15

Please sign in to comment.