Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test-suite] Suppress FP_CONTRACT due to command line changes planned…
… in D74436 The dependent clang patch changes the default setting for ffp-contract to true, and that causes about 20 test-suite LNT tests to fail on X86 and other arch. This patch modifies the build settings to these tests to suppress FP_CONTRACT and allows the tests to pass. Reviewed By: andrew.kaylor, segpop, rengolin, jdoerfert Differential Revision: https://reviews.llvm.org/D102861
- Loading branch information
Melanie Blower
committed
Jun 15, 2021
1 parent
19325b4
commit 24550c3
Showing
53 changed files
with
659 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
set(RUN_OPTIONS -n 64 -t 1000) | ||
# Floating point contraction must be suppressed due to accuracy issues | ||
list(APPEND CXXFLAGS -ffp-contract=off -DFMA_DISABLED=1) | ||
list(APPEND CFLAGS -ffp-contract=off -DFMA_DISABLED=1) | ||
|
||
llvm_multisource(CLAMR) |
4 changes: 4 additions & 0 deletions
4
MultiSource/Benchmarks/DOE-ProxyApps-C++/HPCCG/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
list(APPEND CXXFLAGS -DREDSTORM) # -DREDSTORM for mkdir | ||
# Floating point contraction must be suppressed due to accuracy issues | ||
list(APPEND CXXFLAGS -ffp-contract=off -DFMA_DISABLED=1) | ||
list(APPEND CFLAGS -ffp-contract=off -DFMA_DISABLED=1) | ||
|
||
list(APPEND LDFLAGS -lm) | ||
set(RUN_OPTIONS 50 50 50) | ||
llvm_multisource(HPCCG) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
list(APPEND LDFLAGS -lm) | ||
set(FP_TOLERANCE 0.0001) | ||
# Floating point contraction must be suppressed due to accuracy issues | ||
list(APPEND CXXFLAGS -ffp-contract=off -DFMA_DISABLED=1) | ||
list(APPEND CFLAGS -ffp-contract=off -DFMA_DISABLED=1) | ||
|
||
llvm_singlesource() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
list(APPEND LDFLAGS -lm) | ||
set(FP_ABSTOLERANCE 0.01) | ||
set(HASH_PROGRAM_OUTPUT 1) | ||
# Floating point contraction must be suppressed due to accuracy issues | ||
list(APPEND CXXFLAGS -ffp-contract=off -DFMA_DISABLED=1) | ||
list(APPEND CFLAGS -ffp-contract=off -DFMA_DISABLED=1) | ||
|
||
llvm_singlesource() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.