Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix icpc / denormals #185

Merged
merged 2 commits into from
Jul 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cub/cmake/CubBuildCompilerTargets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ function(cub_build_compiler_targets)
endif()

if ("Intel" STREQUAL "${CMAKE_CXX_COMPILER_ID}")
# Do not flush denormal floats to zero
append_option_if_available("-no-ftz" cxx_compile_options)
# Disable warning that inlining is inhibited by compiler thresholds.
append_option_if_available("-diag-disable=11074" cxx_compile_options)
append_option_if_available("-diag-disable=11076" cxx_compile_options)
Expand All @@ -85,6 +87,7 @@ function(cub_build_compiler_targets)
endif()

if ("NVHPC" STREQUAL "${CMAKE_CUDA_COMPILER_ID}")
# Do not flush denormal floats to zero
list(APPEND cxx_compile_options -Mnodaz)
# TODO: Managed memory is currently not supported on windows with WSL
list(APPEND cxx_compile_options -gpu=nomanaged)
Expand Down