Skip to content

Commit

Permalink
CMake: NVCC/cudafe Error Numbers (AMReX-Codes#1206)
Browse files Browse the repository at this point in the history
Activate this fancy, undocumented flag to show error numbers in NVCC.
This is great if one wants to suppress (or report) them and should be
standard.
  • Loading branch information
ax3l authored and dwillcox committed Oct 3, 2020
1 parent 8a93fff commit 03b5bfd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Tools/CMake/AMReX_SetupCUDA.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,12 @@ if (ENABLE_CUDA_FASTMATH)
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} --use_fast_math")
endif ()

#
# Print numbers for warnings and errors
#
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Xcudafe --display_error_number")


#
# CUDA specific warnings
#
Expand Down

0 comments on commit 03b5bfd

Please sign in to comment.