Skip to content

Commit

Permalink
CMake: NVCC/cudafe Error Numbers (#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 Jul 27, 2020
1 parent ffe8d2e commit 9db7268
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 9db7268

Please sign in to comment.