Skip to content

Commit

Permalink
suppress nvcc warnings with libfmt version 11.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
akohlmey committed Oct 4, 2024
1 parent 2ae4062 commit c4b4b7b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ endif()

# silence nvcc warnings
if((PKG_KOKKOS) AND (Kokkos_ENABLE_CUDA) AND NOT (CMAKE_CXX_COMPILER_ID STREQUAL "Clang"))
set(CMAKE_TUNE_DEFAULT "${CMAKE_TUNE_DEFAULT} -Xcudafe --diag_suppress=unrecognized_pragma")
set(CMAKE_TUNE_DEFAULT "${CMAKE_TUNE_DEFAULT} -Xcudafe --diag_suppress=unrecognized_pragma -Xcudafe --diag_suppress=128")
endif()

# we require C++11 without extensions. Kokkos requires at least C++17 (currently)
Expand Down
2 changes: 1 addition & 1 deletion src/MAKE/MACHINES/Makefile.perlmutter_kokkos
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SHELL = /bin/sh
KOKKOS_ABSOLUTE_PATH = $(shell cd $(KOKKOS_PATH); pwd)

CC = $(KOKKOS_ABSOLUTE_PATH)/bin/nvcc_wrapper
CCFLAGS = -g -O3 -DNDEBUG -Xcudafe --diag_suppress=unrecognized_pragma
CCFLAGS = -g -O3 -DNDEBUG -Xcudafe --diag_suppress=unrecognized_pragma -Xcudafe --diag_suppress=128
SHFLAGS = -fPIC
DEPFLAGS = -M

Expand Down
2 changes: 1 addition & 1 deletion src/MAKE/MACHINES/Makefile.summit_kokkos
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SHELL = /bin/sh
KOKKOS_ABSOLUTE_PATH = $(shell cd $(KOKKOS_PATH); pwd)

CC = $(KOKKOS_ABSOLUTE_PATH)/bin/nvcc_wrapper
CCFLAGS = -g -O3 -DNDEBUG -Xcudafe --diag_suppress=unrecognized_pragma
CCFLAGS = -g -O3 -DNDEBUG -Xcudafe --diag_suppress=unrecognized_pragma -Xcudafe --diag_suppress=128
SHFLAGS = -fPIC
DEPFLAGS = -M

Expand Down
2 changes: 1 addition & 1 deletion src/MAKE/OPTIONS/Makefile.kokkos_cuda_mpi
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ KOKKOS_ABSOLUTE_PATH = $(shell cd $(KOKKOS_PATH); pwd)
export MPICH_CXX = $(KOKKOS_ABSOLUTE_PATH)/bin/nvcc_wrapper
export OMPI_CXX = $(KOKKOS_ABSOLUTE_PATH)/bin/nvcc_wrapper
CC = mpicxx
CCFLAGS = -g -O3 -DNDEBUG -Xcudafe --diag_suppress=unrecognized_pragma
CCFLAGS = -g -O3 -DNDEBUG -Xcudafe --diag_suppress=unrecognized_pragma -Xcudafe --diag_suppress=128
SHFLAGS = -fPIC
# uncomment when compiling with Intel 21.5 or older
FMTFLAGS = # -std=c++11
Expand Down

0 comments on commit c4b4b7b

Please sign in to comment.