Skip to content

Commit

Permalink
workaround clang stack error message
Browse files Browse the repository at this point in the history
To avoid error message 'error: stack size limit exceeded (181056) in
_ZN6alpaka16uniform_cuda_...' set the stack limit to 20 MiB.
  • Loading branch information
psychocoderHPC committed Aug 1, 2022
1 parent db3e11b commit e4c0e1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/common/devCompileOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ ELSE()
ENDIF()
IF(alpaka_ACC_GPU_HIP_ENABLE)
LIST(APPEND alpaka_DEV_COMPILE_OPTIONS "-Wno-unused-command-line-argument")
# To avoid error message 'error: stack size limit exceeded (181056) in _ZN6alpaka16uniform_cuda_...'
# set stack limit to 20 MiB.
LIST(APPEND alpaka_DEV_COMPILE_OPTIONS "-Wframe-larger-than=20971520")
ENDIF()

SET(IS_ICPX OFF)
Expand Down

0 comments on commit e4c0e1b

Please sign in to comment.